home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2000-02-25 | 34.1 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Fri Feb 25 05:00:00 2000, modified Fri Feb 25 05:00:00 2000, creator 'CWIE', type ASCII, 34305 bytes "WASTEIntf.h" , at 0x8681 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 57 41 53 54 45 49 | 6e 74 66 2e 68 00 00 00 |..WASTEI|ntf.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 86 01 00 | 00 01 1e b4 dc 03 20 b4 |........|...... .|
|00000060| dc 03 20 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.. .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cb d5 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 09 57 41 | 53 54 45 49 6e 74 66 2e |/*. *.WA|STEIntf.|
|00000090| 68 0d 20 2a 0d 20 2a 09 | 57 41 53 54 45 20 50 52 |h. *. *.|WASTE PR|
|000000a0| 4f 4a 45 43 54 0d 20 2a | 20 20 49 6e 74 65 72 6e |OJECT. *| Intern|
|000000b0| 61 6c 20 28 70 72 69 76 | 61 74 65 29 20 69 6e 74 |al (priv|ate) int|
|000000c0| 65 72 66 61 63 65 2c 20 | 76 65 72 73 69 6f 6e 20 |erface, |version |
|000000d0| 31 2e 33 0d 20 2a 0d 20 | 2a 20 20 43 6f 70 79 72 |1.3. *. |* Copyr|
|000000e0| 69 67 68 74 20 28 63 29 | 20 31 39 39 33 2d 31 39 |ight (c)| 1993-19|
|000000f0| 39 38 20 4d 61 72 63 6f | 20 50 69 6f 76 61 6e 65 |98 Marco| Piovane|
|00000100| 6c 6c 69 0d 20 2a 09 41 | 6c 6c 20 52 69 67 68 74 |lli. *.A|ll Right|
|00000110| 73 20 52 65 73 65 72 76 | 65 64 0d 20 2a 0d 20 2a |s Reserv|ed. *. *|
|00000120| 20 20 43 20 70 6f 72 74 | 20 62 79 20 44 61 6e 20 | C port| by Dan |
|00000130| 43 72 65 76 69 65 72 0d | 20 2a 0d 20 2a 2f 0d 0d |Crevier.| *. */..|
|00000140| 2f 2a 0d 09 50 6f 72 74 | 69 6f 6e 73 20 63 6f 70 |/*..Port|ions cop|
|00000150| 79 72 69 67 68 74 20 a9 | 20 31 39 39 38 2d 31 39 |yright .| 1998-19|
|00000160| 39 39 20 62 79 20 41 70 | 70 6c 65 20 43 6f 6d 70 |99 by Ap|ple Comp|
|00000170| 75 74 65 72 2c 20 49 6e | 63 2e 20 41 6c 6c 20 72 |uter, In|c. All r|
|00000180| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0d |ights re|served..|
|00000190| 0d 09 43 68 61 6e 67 65 | 20 48 69 73 74 6f 72 79 |..Change| History|
|000001a0| 3a 0d 09 09 31 32 2f 31 | 30 2f 39 39 09 6d 64 72 |:...12/1|0/99.mdr|
|000001b0| 2f 54 59 09 43 68 61 6e | 67 65 20 47 45 4e 45 52 |/TY.Chan|ge GENER|
|000001c0| 41 54 49 4e 47 43 46 4d | 20 74 6f 20 54 41 52 47 |ATINGCFM| to TARG|
|000001d0| 45 54 5f 52 54 5f 4d 41 | 43 5f 43 46 4d 20 61 6e |ET_RT_MA|C_CFM an|
|000001e0| 64 0d 09 09 09 09 09 09 | 09 50 52 41 47 4d 41 5f |d.......|.PRAGMA_|
|000001f0| 41 4c 49 47 4e 5f 53 55 | 50 50 4f 52 54 45 44 20 |ALIGN_SU|PPORTED |
|00000200| 74 6f 20 50 52 41 47 4d | 41 5f 53 54 52 55 43 54 |to PRAGM|A_STRUCT|
|00000210| 5f 41 4c 49 47 4e 2e 0d | 09 09 31 31 2f 32 32 2f |_ALIGN..|..11/22/|
|00000220| 39 39 09 54 57 42 09 09 | 41 6c 6c 6f 77 20 62 6f |99.TWB..|Allow bo|
|00000230| 74 68 20 73 74 79 6c 65 | 72 73 20 61 6e 64 20 6f |th style|rs and o|
|00000240| 62 6a 65 63 74 73 20 74 | 6f 20 64 72 61 77 2e 20 |bjects t|o draw. |
|00000250| 0d 09 09 31 31 2f 31 37 | 2f 39 39 09 54 57 42 09 |...11/17|/99.TWB.|
|00000260| 09 53 74 72 65 61 6d 69 | 6e 67 20 73 75 70 70 6f |.Streami|ng suppo|
|00000270| 72 74 20 66 6f 72 20 73 | 74 79 6c 65 72 73 2e 20 |rt for s|tylers. |
|00000280| 0d 09 09 09 09 09 09 09 | 52 65 6e 61 6d 65 20 73 |........|Rename s|
|00000290| 74 79 6c 65 72 20 70 72 | 6f 63 73 20 66 6f 72 20 |tyler pr|ocs for |
|000002a0| 63 6c 61 72 69 74 79 2e | 20 0d 09 09 31 31 2f 31 |clarity.| ...11/1|
|000002b0| 35 2f 39 39 09 54 57 42 | 09 09 41 64 64 20 73 74 |5/99.TWB|..Add st|
|000002c0| 79 6c 65 72 73 2e 20 0d | 09 09 31 31 2f 31 30 2f |ylers. .|..11/10/|
|000002d0| 39 39 09 54 57 42 09 09 | 43 6c 65 61 6e 20 75 70 |99.TWB..|Clean up|
|000002e0| 20 74 68 65 20 70 72 69 | 76 61 74 65 20 69 6e 74 | the pri|vate int|
|000002f0| 65 72 66 61 63 65 73 2e | 20 0d 09 09 31 30 2f 32 |erfaces.| ...10/2|
|00000300| 39 2f 39 38 09 54 57 42 | 09 09 5a 6f 6f 6d 20 73 |9/98.TWB|..Zoom s|
|00000310| 75 70 70 6f 72 74 2e 20 | 0d 2a 2f 0d 0d 23 69 66 |upport. |.*/..#if|
|00000320| 6e 64 65 66 20 5f 57 41 | 53 54 45 49 6e 74 66 5f |ndef _WA|STEIntf_|
|00000330| 0d 23 64 65 66 69 6e 65 | 20 5f 57 41 53 54 45 49 |.#define| _WASTEI|
|00000340| 6e 74 66 5f 0d 0d 2f 2f | 09 57 41 53 54 45 0d 0d |ntf_..//|.WASTE..|
|00000350| 23 69 66 6e 64 65 66 20 | 5f 57 41 53 54 45 5f 0d |#ifndef |_WASTE_.|
|00000360| 23 69 6e 63 6c 75 64 65 | 20 22 57 41 53 54 45 2e |#include| "WASTE.|
|00000370| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 2f 2f 09 54 6f |h".#endi|f..//.To|
|00000380| 6f 6c 62 6f 78 20 23 69 | 6e 63 6c 75 64 65 73 0d |olbox #i|ncludes.|
|00000390| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 43 4f 4e 44 49 |.#ifndef| __CONDI|
|000003a0| 54 49 4f 4e 41 4c 4d 41 | 43 52 4f 53 5f 5f 0d 23 |TIONALMA|CROS__.#|
|000003b0| 69 6e 63 6c 75 64 65 20 | 3c 43 6f 6e 64 69 74 69 |include |<Conditi|
|000003c0| 6f 6e 61 6c 4d 61 63 72 | 6f 73 2e 68 3e 0d 23 65 |onalMacr|os.h>.#e|
|000003d0| 6e 64 69 66 0d 0d 23 69 | 66 6e 64 65 66 20 55 4e |ndif..#i|fndef UN|
|000003e0| 49 56 45 52 53 41 4c 5f | 49 4e 54 45 52 46 41 43 |IVERSAL_|INTERFAC|
|000003f0| 45 53 5f 56 45 52 53 49 | 4f 4e 0d 23 65 72 72 6f |ES_VERSI|ON.#erro|
|00000400| 72 20 22 59 6f 75 20 6e | 65 65 64 20 55 6e 69 76 |r "You n|eed Univ|
|00000410| 65 72 73 61 6c 20 48 65 | 61 64 65 72 73 20 76 65 |ersal He|aders ve|
|00000420| 72 73 69 6f 6e 20 32 2e | 31 20 6f 72 20 6e 65 77 |rsion 2.|1 or new|
|00000430| 65 72 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 57 41 |er to co|mpile WA|
|00000440| 53 54 45 22 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |STE".#en|dif..#if|
|00000450| 6e 64 65 66 20 5f 5f 54 | 59 50 45 53 5f 5f 0d 23 |ndef __T|YPES__.#|
|00000460| 69 6e 63 6c 75 64 65 20 | 3c 54 79 70 65 73 2e 68 |include |<Types.h|
|00000470| 3e 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 6e 64 65 |>.#endif|..#ifnde|
|00000480| 66 20 5f 5f 4d 49 58 45 | 44 4d 4f 44 45 5f 5f 0d |f __MIXE|DMODE__.|
|00000490| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 69 78 65 64 4d |#include| <MixedM|
|000004a0| 6f 64 65 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |ode.h>.#|endif..#|
|000004b0| 69 66 6e 64 65 66 20 5f | 5f 43 4f 44 45 46 52 41 |ifndef _|_CODEFRA|
|000004c0| 47 4d 45 4e 54 53 5f 5f | 0d 23 69 6e 63 6c 75 64 |GMENTS__|.#includ|
|000004d0| 65 20 3c 43 6f 64 65 46 | 72 61 67 6d 65 6e 74 73 |e <CodeF|ragments|
|000004e0| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e |.h>.#end|if..#ifn|
|000004f0| 64 65 66 20 5f 5f 45 52 | 52 4f 52 53 5f 5f 0d 23 |def __ER|RORS__.#|
|00000500| 69 6e 63 6c 75 64 65 20 | 3c 45 72 72 6f 72 73 2e |include |<Errors.|
|00000510| 68 3e 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h>.#endi|f..#ifnd|
|00000520| 65 66 20 5f 5f 47 45 53 | 54 41 4c 54 5f 5f 0d 23 |ef __GES|TALT__.#|
|00000530| 69 6e 63 6c 75 64 65 20 | 3c 47 65 73 74 61 6c 74 |include |<Gestalt|
|00000540| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e |.h>.#end|if..#ifn|
|00000550| 64 65 66 20 5f 5f 4d 45 | 4d 4f 52 59 5f 5f 0d 23 |def __ME|MORY__.#|
|00000560| 69 6e 63 6c 75 64 65 20 | 3c 4d 65 6d 6f 72 79 2e |include |<Memory.|
|00000570| 68 3e 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h>.#endi|f..#ifnd|
|00000580| 65 66 20 5f 5f 46 4f 4e | 54 53 5f 5f 0d 23 69 6e |ef __FON|TS__.#in|
|00000590| 63 6c 75 64 65 20 3c 46 | 6f 6e 74 73 2e 68 3e 0d |clude <F|onts.h>.|
|000005a0| 23 65 6e 64 69 66 0d 0d | 23 69 66 6e 64 65 66 20 |#endif..|#ifndef |
|000005b0| 5f 5f 51 55 49 43 4b 44 | 52 41 57 54 45 58 54 5f |__QUICKD|RAWTEXT_|
|000005c0| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 51 75 69 63 |_.#inclu|de <Quic|
|000005d0| 6b 64 72 61 77 54 65 78 | 74 2e 68 3e 0d 23 65 6e |kdrawTex|t.h>.#en|
|000005e0| 64 69 66 0d 0d 23 69 66 | 6e 64 65 66 20 5f 5f 51 |dif..#if|ndef __Q|
|000005f0| 55 49 43 4b 44 52 41 57 | 5f 5f 0d 23 69 6e 63 6c |UICKDRAW|__.#incl|
|00000600| 75 64 65 20 3c 51 75 69 | 63 6b 64 72 61 77 2e 68 |ude <Qui|ckdraw.h|
|00000610| 3e 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 6e 64 65 |>.#endif|..#ifnde|
|00000620| 66 20 5f 5f 51 44 4f 46 | 46 53 43 52 45 45 4e 5f |f __QDOF|FSCREEN_|
|00000630| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 51 44 4f 66 |_.#inclu|de <QDOf|
|00000640| 66 73 63 72 65 65 6e 2e | 68 3e 0d 23 65 6e 64 69 |fscreen.|h>.#endi|
|00000650| 66 0d 0d 23 69 66 6e 64 | 65 66 20 5f 5f 50 41 4c |f..#ifnd|ef __PAL|
|00000660| 45 54 54 45 53 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |ETTES__.|#include|
|00000670| 20 3c 50 61 6c 65 74 74 | 65 73 2e 68 3e 0d 23 65 | <Palett|es.h>.#e|
|00000680| 6e 64 69 66 0d 0d 23 69 | 66 6e 64 65 66 20 5f 5f |ndif..#i|fndef __|
|00000690| 54 45 58 54 45 44 49 54 | 5f 5f 0d 23 69 6e 63 6c |TEXTEDIT|__.#incl|
|000006a0| 75 64 65 20 3c 54 65 78 | 74 45 64 69 74 2e 68 3e |ude <Tex|tEdit.h>|
|000006b0| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 6e 64 65 66 |.#endif.|.#ifndef|
|000006c0| 20 5f 5f 53 43 52 41 50 | 5f 5f 0d 23 69 6e 63 6c | __SCRAP|__.#incl|
|000006d0| 75 64 65 20 3c 53 63 72 | 61 70 2e 68 3e 0d 23 65 |ude <Scr|ap.h>.#e|
|000006e0| 6e 64 69 66 0d 0d 23 69 | 66 6e 64 65 66 20 5f 5f |ndif..#i|fndef __|
|000006f0| 53 43 52 49 50 54 5f 5f | 0d 23 69 6e 63 6c 75 64 |SCRIPT__|.#includ|
|00000700| 65 20 3c 53 63 72 69 70 | 74 2e 68 3e 0d 23 65 6e |e <Scrip|t.h>.#en|
|00000710| 64 69 66 0d 0d 23 69 66 | 6e 64 65 66 20 5f 5f 54 |dif..#if|ndef __T|
|00000720| 4f 4f 4c 55 54 49 4c 53 | 5f 5f 0d 23 69 6e 63 6c |OOLUTILS|__.#incl|
|00000730| 75 64 65 20 3c 54 6f 6f | 6c 55 74 69 6c 73 2e 68 |ude <Too|lUtils.h|
|00000740| 3e 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 6e 64 65 |>.#endif|..#ifnde|
|00000750| 66 20 5f 5f 54 45 58 54 | 55 54 49 4c 53 5f 5f 0d |f __TEXT|UTILS__.|
|00000760| 23 69 6e 63 6c 75 64 65 | 20 3c 54 65 78 74 55 74 |#include| <TextUt|
|00000770| 69 6c 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |ils.h>.#|endif..#|
|00000780| 69 66 6e 64 65 66 20 5f | 5f 4c 4f 57 4d 45 4d 5f |ifndef _|_LOWMEM_|
|00000790| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 4c 6f 77 4d |_.#inclu|de <LowM|
|000007a0| 65 6d 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |em.h>.#e|ndif..#i|
|000007b0| 66 6e 64 65 66 20 5f 5f | 41 50 50 4c 45 45 56 45 |fndef __|APPLEEVE|
|000007c0| 4e 54 53 5f 5f 0d 23 69 | 6e 63 6c 75 64 65 20 3c |NTS__.#i|nclude <|
|000007d0| 41 70 70 6c 65 45 76 65 | 6e 74 73 2e 68 3e 0d 23 |AppleEve|nts.h>.#|
|000007e0| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 5f |endif..#|ifndef _|
|000007f0| 5f 41 45 52 45 47 49 53 | 54 52 59 5f 5f 0d 23 69 |_AEREGIS|TRY__.#i|
|00000800| 6e 63 6c 75 64 65 20 3c | 41 45 52 65 67 69 73 74 |nclude <|AERegist|
|00000810| 72 79 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |ry.h>.#e|ndif..#i|
|00000820| 66 6e 64 65 66 20 5f 5f | 44 52 41 47 5f 5f 0d 23 |fndef __|DRAG__.#|
|00000830| 69 6e 63 6c 75 64 65 20 | 3c 44 72 61 67 2e 68 3e |include |<Drag.h>|
|00000840| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 6e 64 65 66 |.#endif.|.#ifndef|
|00000850| 20 5f 5f 54 45 58 54 53 | 45 52 56 49 43 45 53 5f | __TEXTS|ERVICES_|
|00000860| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 54 65 78 74 |_.#inclu|de <Text|
|00000870| 53 65 72 76 69 63 65 73 | 2e 68 3e 0d 23 65 6e 64 |Services|.h>.#end|
|00000880| 69 66 0d 0d 23 69 66 6e | 64 65 66 20 5f 5f 46 49 |if..#ifn|def __FI|
|00000890| 58 4d 41 54 48 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |XMATH__.|#include|
|000008a0| 20 3c 46 69 78 4d 61 74 | 68 2e 68 3e 0d 23 65 6e | <FixMat|h.h>.#en|
|000008b0| 64 69 66 0d 0d 2f 2f 09 | 41 4e 53 49 20 23 69 6e |dif..//.|ANSI #in|
|000008c0| 63 6c 75 64 65 73 0d 0d | 23 69 66 6e 64 65 66 20 |cludes..|#ifndef |
|000008d0| 5f 4c 49 4d 49 54 53 0d | 23 69 6e 63 6c 75 64 65 |_LIMITS.|#include|
|000008e0| 20 3c 6c 69 6d 69 74 73 | 2e 68 3e 0d 23 65 6e 64 | <limits|.h>.#end|
|000008f0| 69 66 0d 0d 2f 2f 09 6f | 74 68 65 72 20 23 69 6e |if..//.o|ther #in|
|00000900| 63 6c 75 64 65 73 0d 0d | 23 69 66 6e 64 65 66 20 |cludes..|#ifndef |
|00000910| 5f 5f 4c 4f 4e 47 43 4f | 4f 52 44 49 4e 41 54 45 |__LONGCO|ORDINATE|
|00000920| 53 5f 5f 0d 23 69 66 6e | 64 65 66 20 5f 4c 6f 6e |S__.#ifn|def _Lon|
|00000930| 67 43 6f 6f 72 64 73 5f | 0d 23 69 6e 63 6c 75 64 |gCoords_|.#includ|
|00000940| 65 20 22 4c 6f 6e 67 43 | 6f 6f 72 64 73 2e 68 22 |e "LongC|oords.h"|
|00000950| 0d 23 65 6e 64 69 66 0d | 23 65 6e 64 69 66 0d 0d |.#endif.|#endif..|
|00000960| 2f 2f 09 74 68 65 72 65 | 20 61 72 65 20 73 6c 69 |//.there| are sli|
|00000970| 67 68 74 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |ght diff|erences |
|00000980| 62 65 74 77 65 65 6e 20 | 55 6e 69 76 65 72 73 61 |between |Universa|
|00000990| 6c 20 48 65 61 64 65 72 | 73 20 76 65 72 73 69 6f |l Header|s versio|
|000009a0| 6e 20 32 2e 31 2e 78 20 | 61 6e 64 20 33 2e 30 0d |n 2.1.x |and 3.0.|
|000009b0| 2f 2f 09 74 68 61 74 20 | 6e 65 65 64 20 74 6f 20 |//.that |need to |
|000009c0| 62 65 20 61 64 64 72 65 | 73 73 65 64 20 68 65 72 |be addre|ssed her|
|000009d0| 65 2c 20 69 66 20 57 41 | 53 54 45 20 69 73 20 74 |e, if WA|STE is t|
|000009e0| 6f 20 73 75 70 70 6f 72 | 74 20 62 6f 74 68 20 73 |o suppor|t both s|
|000009f0| 65 74 73 20 6f 66 20 68 | 65 61 64 65 72 73 0d 0d |ets of h|eaders..|
|00000a00| 23 69 66 20 64 65 66 69 | 6e 65 64 28 55 4e 49 56 |#if defi|ned(UNIV|
|00000a10| 45 52 53 41 4c 5f 49 4e | 54 45 52 46 41 43 45 53 |ERSAL_IN|TERFACES|
|00000a20| 5f 56 45 52 53 49 4f 4e | 29 20 26 26 20 28 55 4e |_VERSION|) && (UN|
|00000a30| 49 56 45 52 53 41 4c 5f | 49 4e 54 45 52 46 41 43 |IVERSAL_|INTERFAC|
|00000a40| 45 53 5f 56 45 52 53 49 | 4f 4e 20 3e 3d 20 30 78 |ES_VERSI|ON >= 0x|
|00000a50| 33 30 30 29 0d 09 2f 2f | 09 77 65 27 72 65 20 75 |300)..//|.we're u|
|00000a60| 73 69 6e 67 20 55 6e 69 | 76 65 72 73 61 6c 20 48 |sing Uni|versal H|
|00000a70| 65 61 64 65 72 73 20 33 | 2e 30 20 6f 72 20 6c 61 |eaders 3|.0 or la|
|00000a80| 74 65 72 0d 09 23 64 65 | 66 69 6e 65 09 09 6b 4e |ter..#de|fine..kN|
|00000a90| 75 6c 6c 44 72 61 67 09 | 09 09 09 09 09 09 6e 69 |ullDrag.|......ni|
|00000aa0| 6c 0d 23 65 6c 73 65 0d | 09 2f 2f 09 77 65 27 72 |l.#else.|.//.we'r|
|00000ab0| 65 20 75 73 69 6e 67 20 | 55 6e 69 76 65 72 73 61 |e using |Universa|
|00000ac0| 6c 20 48 65 61 64 65 72 | 73 20 32 2e 31 2e 78 3a |l Header|s 2.1.x:|
|00000ad0| 20 77 65 20 6e 65 65 64 | 20 74 6f 20 64 65 66 69 | we need| to defi|
|00000ae0| 6e 65 20 73 6f 6d 65 20 | 61 64 64 69 74 69 6f 6e |ne some |addition|
|00000af0| 61 6c 20 73 79 6d 62 6f | 6c 73 0d 09 23 64 65 66 |al symbo|ls..#def|
|00000b00| 69 6e 65 09 09 6b 4e 75 | 6c 6c 44 72 61 67 09 09 |ine..kNu|llDrag..|
|00000b10| 09 09 09 09 09 30 4c 0d | 09 23 64 65 66 69 6e 65 |.....0L.|.#define|
|00000b20| 09 09 6b 44 72 61 67 54 | 72 61 63 6b 69 6e 67 45 |..kDragT|rackingE|
|00000b30| 6e 74 65 72 57 69 6e 64 | 6f 77 09 09 09 64 72 61 |nterWind|ow...dra|
|00000b40| 67 54 72 61 63 6b 69 6e | 67 45 6e 74 65 72 57 69 |gTrackin|gEnterWi|
|00000b50| 6e 64 6f 77 0d 09 23 64 | 65 66 69 6e 65 09 09 6b |ndow..#d|efine..k|
|00000b60| 44 72 61 67 54 72 61 63 | 6b 69 6e 67 49 6e 57 69 |DragTrac|kingInWi|
|00000b70| 6e 64 6f 77 09 09 09 09 | 64 72 61 67 54 72 61 63 |ndow....|dragTrac|
|00000b80| 6b 69 6e 67 49 6e 57 69 | 6e 64 6f 77 0d 09 23 64 |kingInWi|ndow..#d|
|00000b90| 65 66 69 6e 65 09 09 6b | 44 72 61 67 54 72 61 63 |efine..k|DragTrac|
|00000ba0| 6b 69 6e 67 4c 65 61 76 | 65 57 69 6e 64 6f 77 09 |kingLeav|eWindow.|
|00000bb0| 09 09 64 72 61 67 54 72 | 61 63 6b 69 6e 67 4c 65 |..dragTr|ackingLe|
|00000bc0| 61 76 65 57 69 6e 64 6f | 77 0d 09 23 64 65 66 69 |aveWindo|w..#defi|
|00000bd0| 6e 65 09 09 6b 44 72 61 | 67 48 61 73 4c 65 66 74 |ne..kDra|gHasLeft|
|00000be0| 53 65 6e 64 65 72 57 69 | 6e 64 6f 77 09 09 09 64 |SenderWi|ndow...d|
|00000bf0| 72 61 67 48 61 73 4c 65 | 66 74 53 65 6e 64 65 72 |ragHasLe|ftSender|
|00000c00| 57 69 6e 64 6f 77 0d 09 | 23 64 65 66 69 6e 65 09 |Window..|#define.|
|00000c10| 09 6b 44 72 61 67 53 74 | 61 6e 64 61 72 64 54 72 |.kDragSt|andardTr|
|00000c20| 61 6e 73 6c 75 63 65 6e | 63 79 09 09 09 30 4c 0d |anslucen|cy...0L.|
|00000c30| 09 74 79 70 65 64 65 66 | 09 09 55 49 6e 74 33 32 |.typedef|..UInt32|
|00000c40| 09 09 09 09 09 09 09 09 | 44 72 61 67 49 6d 61 67 |........|DragImag|
|00000c50| 65 46 6c 61 67 73 20 3b | 0d 09 65 78 74 65 72 6e |eFlags ;|..extern|
|00000c60| 20 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 53 65 | pascal |OSErr Se|
|00000c70| 74 44 72 61 67 49 6d 61 | 67 65 28 44 72 61 67 52 |tDragIma|ge(DragR|
|00000c80| 65 66 65 72 65 6e 63 65 | 20 64 72 61 67 2c 20 50 |eference| drag, P|
|00000c90| 69 78 4d 61 70 48 61 6e | 64 6c 65 20 69 6d 61 67 |ixMapHan|dle imag|
|00000ca0| 65 50 69 78 4d 61 70 2c | 0d 09 09 52 67 6e 48 61 |ePixMap,|...RgnHa|
|00000cb0| 6e 64 6c 65 20 69 6d 61 | 67 65 52 67 6e 2c 20 50 |ndle ima|geRgn, P|
|00000cc0| 6f 69 6e 74 20 69 6d 61 | 67 65 4f 66 66 73 65 74 |oint ima|geOffset|
|00000cd0| 50 74 2c 20 44 72 61 67 | 49 6d 61 67 65 46 6c 61 |Pt, Drag|ImageFla|
|00000ce0| 67 73 20 69 6d 61 67 65 | 46 6c 61 67 73 29 0d 20 |gs image|Flags). |
|00000cf0| 09 09 54 57 4f 57 4f 52 | 44 49 4e 4c 49 4e 45 28 |..TWOWOR|DINLINE(|
|00000d00| 30 78 37 30 32 37 2c 30 | 78 41 42 45 44 29 3b 0d |0x7027,0|xABED);.|
|00000d10| 23 65 6e 64 69 66 0d 0d | 2f 2f 20 4d 50 57 20 6e |#endif..|// MPW n|
|00000d20| 65 65 64 73 20 74 6f 70 | 4c 65 66 74 20 61 6e 64 |eeds top|Left and|
|00000d30| 20 62 6f 74 52 69 67 68 | 74 20 64 65 66 69 6e 65 | botRigh|t define|
|00000d40| 64 20 68 65 72 65 0d 23 | 69 66 6e 64 65 66 20 74 |d here.#|ifndef t|
|00000d50| 6f 70 4c 65 66 74 0d 23 | 64 65 66 69 6e 65 20 74 |opLeft.#|define t|
|00000d60| 6f 70 4c 65 66 74 28 72 | 29 20 20 20 20 20 20 20 |opLeft(r|) |
|00000d70| 20 20 20 20 20 20 20 09 | 09 28 28 28 50 6f 69 6e | .|.(((Poin|
|00000d80| 74 20 2a 29 20 26 28 72 | 29 29 5b 30 5d 29 0d 23 |t *) &(r|))[0]).#|
|00000d90| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 62 |endif..#|ifndef b|
|00000da0| 6f 74 52 69 67 68 74 0d | 23 64 65 66 69 6e 65 20 |otRight.|#define |
|00000db0| 62 6f 74 52 69 67 68 74 | 28 72 29 20 20 20 20 20 |botRight|(r) |
|00000dc0| 20 20 20 20 20 20 20 20 | 09 09 28 28 28 50 6f 69 | |..(((Poi|
|00000dd0| 6e 74 20 2a 29 20 26 28 | 72 29 29 5b 31 5d 29 0d |nt *) &(|r))[1]).|
|00000de0| 23 65 6e 64 69 66 0d 0d | 2f 2f 20 70 61 73 63 61 |#endif..|// pasca|
|00000df0| 6c 2d 6c 69 6b 65 20 6d | 61 63 72 6f 73 20 66 6f |l-like m|acros fo|
|00000e00| 72 20 74 65 73 74 69 6e | 67 2c 20 73 65 74 74 69 |r testin|g, setti|
|00000e10| 6e 67 2c 20 63 6c 65 61 | 72 69 6e 67 20 61 6e 64 |ng, clea|ring and|
|00000e20| 20 69 6e 76 65 72 74 69 | 6e 67 20 62 69 74 73 0d | inverti|ng bits.|
|00000e30| 23 64 65 66 69 6e 65 20 | 42 54 53 54 28 20 46 4c |#define |BTST( FL|
|00000e40| 41 47 53 2c 20 42 49 54 | 20 29 09 09 09 09 28 28 |AGS, BIT| )....((|
|00000e50| 46 4c 41 47 53 29 20 26 | 20 20 20 28 31 55 4c 20 |FLAGS) &| (1UL |
|00000e60| 3c 3c 20 28 42 49 54 29 | 29 29 0d 23 64 65 66 69 |<< (BIT)|)).#defi|
|00000e70| 6e 65 20 42 53 45 54 28 | 20 46 4c 41 47 53 2c 20 |ne BSET(| FLAGS, |
|00000e80| 42 49 54 20 29 20 20 09 | 09 09 28 28 46 4c 41 47 |BIT ) .|..((FLAG|
|00000e90| 53 29 20 7c 3d 20 20 28 | 31 55 4c 20 3c 3c 20 28 |S) |= (|1UL << (|
|00000ea0| 42 49 54 29 29 29 0d 23 | 64 65 66 69 6e 65 20 42 |BIT))).#|define B|
|00000eb0| 43 4c 52 28 20 46 4c 41 | 47 53 2c 20 42 49 54 20 |CLR( FLA|GS, BIT |
|00000ec0| 29 20 20 09 09 09 28 28 | 46 4c 41 47 53 29 20 26 |) ...((|FLAGS) &|
|00000ed0| 3d 20 7e 28 31 55 4c 20 | 3c 3c 20 28 42 49 54 29 |= ~(1UL |<< (BIT)|
|00000ee0| 29 29 0d 23 64 65 66 69 | 6e 65 20 42 43 48 47 28 |)).#defi|ne BCHG(|
|00000ef0| 20 46 4c 41 47 53 2c 20 | 42 49 54 20 29 20 20 09 | FLAGS, |BIT ) .|
|00000f00| 09 09 28 28 46 4c 41 47 | 53 29 20 5e 3d 20 20 28 |..((FLAG|S) ^= (|
|00000f10| 31 55 4c 20 3c 3c 20 28 | 42 49 54 29 29 29 0d 0d |1UL << (|BIT)))..|
|00000f20| 2f 2f 20 70 61 73 63 61 | 6c 2d 6c 69 6b 65 20 6d |// pasca|l-like m|
|00000f30| 61 63 72 6f 73 20 66 6f | 72 20 73 68 69 66 74 69 |acros fo|r shifti|
|00000f40| 6e 67 20 62 69 74 73 0d | 23 64 65 66 69 6e 65 20 |ng bits.|#define |
|00000f50| 42 53 4c 28 20 41 2c 20 | 42 20 29 09 09 09 09 09 |BSL( A, |B ).....|
|00000f60| 09 28 28 28 53 49 6e 74 | 33 32 29 20 28 41 29 29 |.(((SInt|32) (A))|
|00000f70| 20 3c 3c 20 28 42 29 29 | 0d 23 64 65 66 69 6e 65 | << (B))|.#define|
|00000f80| 20 42 53 52 28 20 41 2c | 20 42 20 29 09 09 09 09 | BSR( A,| B )....|
|00000f90| 09 09 28 28 28 53 49 6e | 74 33 32 29 20 28 41 29 |..(((SIn|t32) (A)|
|00000fa0| 29 20 3e 3e 20 28 42 29 | 29 0d 0d 2f 2f 20 6d 61 |) >> (B)|)..// ma|
|00000fb0| 63 72 6f 73 20 75 73 65 | 64 20 69 6e 20 63 6f 6e |cros use|d in con|
|00000fc0| 6a 75 6e 63 74 69 6f 6e | 20 77 69 74 68 20 74 68 |junction| with th|
|00000fd0| 65 20 73 74 79 6c 65 52 | 75 6e 50 6f 73 69 74 69 |e styleR|unPositi|
|00000fe0| 6f 6e 20 70 61 72 61 6d | 65 74 65 72 0d 23 64 65 |on param|eter.#de|
|00000ff0| 66 69 6e 65 20 49 53 5f | 4c 45 46 54 4d 4f 53 54 |fine IS_|LEFTMOST|
|00001000| 5f 52 55 4e 28 52 55 4e | 29 09 09 09 28 28 52 55 |_RUN(RUN|)...((RU|
|00001010| 4e 29 20 3c 3d 20 6c 65 | 66 74 53 74 79 6c 65 52 |N) <= le|ftStyleR|
|00001020| 75 6e 29 0d 23 64 65 66 | 69 6e 65 20 49 53 5f 52 |un).#def|ine IS_R|
|00001030| 49 47 48 54 4d 4f 53 54 | 5f 52 55 4e 28 52 55 4e |IGHTMOST|_RUN(RUN|
|00001040| 29 09 09 09 28 21 20 28 | 28 52 55 4e 29 20 26 20 |)...(! (|(RUN) & |
|00001050| 30 78 30 31 29 29 0d 0d | 2f 2f 20 6f 74 68 65 72 |0x01))..|// other|
|00001060| 20 6d 61 63 72 6f 73 0d | 23 64 65 66 69 6e 65 20 | macros.|#define |
|00001070| 41 42 53 28 41 29 20 09 | 09 09 09 09 09 09 28 28 |ABS(A) .|......((|
|00001080| 41 29 20 3e 20 30 20 3f | 20 28 41 29 20 3a 20 2d |A) > 0 ?| (A) : -|
|00001090| 28 41 29 29 0d 23 64 65 | 66 69 6e 65 20 42 4c 4f |(A)).#de|fine BLO|
|000010a0| 43 4b 5f 43 4c 52 28 58 | 29 09 09 09 09 09 5f 57 |CK_CLR(X|)....._W|
|000010b0| 45 42 6c 6f 63 6b 43 6c | 72 28 26 28 58 29 2c 20 |EBlockCl|r(&(X), |
|000010c0| 73 69 7a 65 6f 66 28 58 | 29 29 3b 0d 0d 2f 2f 20 |sizeof(X|));..// |
|000010d0| 64 65 66 69 6e 65 20 57 | 41 53 54 45 5f 56 45 52 |define W|ASTE_VER|
|000010e0| 53 49 4f 4e 20 69 73 20 | 73 74 61 6e 64 61 72 64 |SION is |standard|
|000010f0| 20 4e 75 6d 56 65 72 73 | 69 6f 6e 20 66 6f 72 6d | NumVers|ion form|
|00001100| 61 74 0d 0d 23 64 65 66 | 69 6e 65 20 57 41 53 54 |at..#def|ine WAST|
|00001110| 45 5f 56 45 52 53 49 4f | 4e 09 09 09 09 09 30 78 |E_VERSIO|N.....0x|
|00001120| 30 31 33 30 38 30 30 30 | 09 2f 2a 20 31 2e 33 20 |01308000|./* 1.3 |
|00001130| 2a 2f 0d 0d 2f 2f 20 73 | 65 74 20 57 41 53 54 45 |*/..// s|et WASTE|
|00001140| 5f 53 48 41 52 45 44 5f | 4c 49 42 52 41 52 59 20 |_SHARED_|LIBRARY |
|00001150| 74 6f 20 31 20 77 68 65 | 6e 20 62 75 69 6c 64 69 |to 1 whe|n buildi|
|00001160| 6e 67 20 61 20 43 46 4d | 2d 62 61 73 65 64 20 73 |ng a CFM|-based s|
|00001170| 68 61 72 65 64 20 6c 69 | 62 72 61 72 79 0d 23 69 |hared li|brary.#i|
|00001180| 66 6e 64 65 66 20 57 41 | 53 54 45 5f 53 48 41 52 |fndef WA|STE_SHAR|
|00001190| 45 44 5f 4c 49 42 52 41 | 52 59 0d 23 64 65 66 69 |ED_LIBRA|RY.#defi|
|000011a0| 6e 65 20 57 41 53 54 45 | 5f 53 48 41 52 45 44 5f |ne WASTE|_SHARED_|
|000011b0| 4c 49 42 52 41 52 59 09 | 09 09 30 0d 23 65 6e 64 |LIBRARY.|..0.#end|
|000011c0| 69 66 0d 0d 2f 2f 09 6d | 61 6b 65 20 73 75 72 65 |if..//.m|ake sure|
|000011d0| 20 57 41 53 54 45 5f 53 | 48 41 52 45 44 5f 4c 49 | WASTE_S|HARED_LI|
|000011e0| 42 52 41 52 59 20 69 73 | 20 66 61 6c 73 65 20 69 |BRARY is| false i|
|000011f0| 66 20 62 75 69 6c 64 69 | 6e 67 20 61 20 6e 6f 6e |f buildi|ng a non|
|00001200| 2d 43 46 4d 20 70 72 6f | 6a 65 63 74 0d 23 69 66 |-CFM pro|ject.#if|
|00001210| 20 28 20 57 41 53 54 45 | 5f 53 48 41 52 45 44 5f | ( WASTE|_SHARED_|
|00001220| 4c 49 42 52 41 52 59 20 | 26 26 20 28 20 21 20 54 |LIBRARY |&& ( ! T|
|00001230| 41 52 47 45 54 5f 52 54 | 5f 4d 41 43 5f 43 46 4d |ARGET_RT|_MAC_CFM|
|00001240| 20 29 20 29 0d 23 65 72 | 72 6f 72 20 22 57 41 53 | ) ).#er|ror "WAS|
|00001250| 54 45 5f 53 48 41 52 45 | 44 5f 4c 49 42 52 41 52 |TE_SHARE|D_LIBRAR|
|00001260| 59 20 6d 75 73 74 20 62 | 65 20 30 20 69 6e 20 61 |Y must b|e 0 in a|
|00001270| 20 63 6c 61 73 73 69 63 | 20 36 38 4b 20 70 72 6f | classic| 68K pro|
|00001280| 6a 65 63 74 22 0d 23 65 | 6e 64 69 66 0d 0d 2f 2f |ject".#e|ndif..//|
|00001290| 20 73 65 74 20 57 41 53 | 54 45 5f 44 45 42 55 47 | set WAS|TE_DEBUG|
|000012a0| 20 74 6f 20 31 20 74 6f | 20 70 65 72 66 6f 72 6d | to 1 to| perform|
|000012b0| 20 76 61 72 69 6f 75 73 | 20 63 6f 6e 73 69 73 74 | various| consist|
|000012c0| 65 6e 63 79 20 63 68 65 | 63 6b 73 3b 0d 2f 2f 20 |ency che|cks;.// |
|000012d0| 65 72 72 6f 72 73 20 77 | 69 6c 6c 20 62 65 20 72 |errors w|ill be r|
|000012e0| 65 70 6f 72 74 65 64 20 | 77 69 74 68 20 44 65 62 |eported |with Deb|
|000012f0| 75 67 53 74 72 28 29 0d | 2f 2f 20 57 41 52 4e 49 |ugStr().|// WARNI|
|00001300| 4e 47 3a 20 77 68 65 6e | 20 57 41 53 54 45 5f 44 |NG: when| WASTE_D|
|00001310| 45 42 55 47 20 69 73 20 | 73 65 74 2c 20 57 45 49 |EBUG is |set, WEI|
|00001320| 64 6c 65 28 29 20 63 61 | 6c 6c 73 20 63 61 6e 20 |dle() ca|lls can |
|00001330| 62 65 20 65 78 74 72 65 | 6d 65 6c 79 20 74 69 6d |be extre|mely tim|
|00001340| 65 2d 63 6f 6e 73 75 6d | 69 6e 67 0d 23 69 66 6e |e-consum|ing.#ifn|
|00001350| 64 65 66 20 57 41 53 54 | 45 5f 44 45 42 55 47 0d |def WAST|E_DEBUG.|
|00001360| 23 64 65 66 69 6e 65 20 | 57 41 53 54 45 5f 44 45 |#define |WASTE_DE|
|00001370| 42 55 47 09 09 09 09 09 | 09 30 0d 23 65 6e 64 69 |BUG.....|.0.#endi|
|00001380| 66 0d 0d 2f 2f 20 73 65 | 74 20 57 41 53 54 45 5f |f..// se|t WASTE_|
|00001390| 53 54 59 4c 45 52 53 20 | 74 6f 20 30 20 69 66 20 |STYLERS |to 0 if |
|000013a0| 79 6f 75 20 64 6f 6e 27 | 74 20 6e 65 65 64 20 73 |you don'|t need s|
|000013b0| 74 79 6c 65 20 6f 62 6a | 65 63 74 73 0d 23 69 66 |tyle obj|ects.#if|
|000013c0| 6e 64 65 66 20 57 41 53 | 54 45 5f 53 54 59 4c 45 |ndef WAS|TE_STYLE|
|000013d0| 52 53 0d 23 64 65 66 69 | 6e 65 09 57 41 53 54 45 |RS.#defi|ne.WASTE|
|000013e0| 5f 53 54 59 4c 45 52 53 | 09 09 09 09 09 31 0d 23 |_STYLERS|.....1.#|
|000013f0| 65 6e 64 69 66 0d 0d 2f | 2f 20 73 65 74 20 57 41 |endif../|/ set WA|
|00001400| 53 54 45 5f 4f 42 4a 45 | 43 54 53 20 74 6f 20 30 |STE_OBJE|CTS to 0|
|00001410| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 6e 65 | if you |don't ne|
|00001420| 65 64 20 65 6d 62 65 64 | 64 65 64 20 6f 62 6a 65 |ed embed|ded obje|
|00001430| 63 74 73 0d 23 69 66 6e | 64 65 66 20 57 41 53 54 |cts.#ifn|def WAST|
|00001440| 45 5f 4f 42 4a 45 43 54 | 53 0d 23 64 65 66 69 6e |E_OBJECT|S.#defin|
|00001450| 65 09 57 41 53 54 45 5f | 4f 42 4a 45 43 54 53 09 |e.WASTE_|OBJECTS.|
|00001460| 09 09 09 09 31 0d 23 65 | 6e 64 69 66 0d 0d 2f 2f |....1.#e|ndif..//|
|00001470| 20 73 65 74 20 57 41 53 | 54 45 5f 54 53 4d 5f 53 | set WAS|TE_TSM_S|
|00001480| 55 50 50 4f 52 54 20 74 | 6f 20 30 20 74 6f 20 64 |UPPORT t|o 0 to d|
|00001490| 69 73 61 62 6c 65 20 73 | 75 70 70 6f 72 74 20 66 |isable s|upport f|
|000014a0| 6f 72 20 74 68 65 20 54 | 65 78 74 20 53 65 72 76 |or the T|ext Serv|
|000014b0| 69 63 65 73 20 4d 61 6e | 61 67 65 72 0d 23 69 66 |ices Man|ager.#if|
|000014c0| 6e 64 65 66 20 57 41 53 | 54 45 5f 54 53 4d 5f 53 |ndef WAS|TE_TSM_S|
|000014d0| 55 50 50 4f 52 54 0d 23 | 64 65 66 69 6e 65 20 57 |UPPORT.#|define W|
|000014e0| 41 53 54 45 5f 54 53 4d | 5f 53 55 50 50 4f 52 54 |ASTE_TSM|_SUPPORT|
|000014f0| 09 09 09 09 31 0d 23 65 | 6e 64 69 66 0d 0d 2f 2f |....1.#e|ndif..//|
|00001500| 20 73 65 74 20 57 41 53 | 54 45 5f 44 52 41 47 5f | set WAS|TE_DRAG_|
|00001510| 41 4e 44 5f 44 52 4f 50 | 20 74 6f 20 30 20 74 6f |AND_DROP| to 0 to|
|00001520| 20 64 69 73 61 62 6c 65 | 20 73 75 70 70 6f 72 74 | disable| support|
|00001530| 20 66 6f 72 20 74 68 65 | 20 44 72 61 67 20 4d 61 | for the| Drag Ma|
|00001540| 6e 61 67 65 72 0d 23 69 | 66 6e 64 65 66 20 57 41 |nager.#i|fndef WA|
|00001550| 53 54 45 5f 44 52 41 47 | 5f 41 4e 44 5f 44 52 4f |STE_DRAG|_AND_DRO|
|00001560| 50 0d 23 64 65 66 69 6e | 65 20 57 41 53 54 45 5f |P.#defin|e WASTE_|
|00001570| 44 52 41 47 5f 41 4e 44 | 5f 44 52 4f 50 09 09 09 |DRAG_AND|_DROP...|
|00001580| 09 31 0d 23 65 6e 64 69 | 66 0d 0d 2f 2f 20 73 65 |.1.#endi|f..// se|
|00001590| 74 20 57 41 53 54 45 5f | 55 53 45 5f 55 50 50 53 |t WASTE_|USE_UPPS|
|000015a0| 20 74 6f 20 30 20 69 66 | 20 79 6f 75 20 64 6f 6e | to 0 if| you don|
|000015b0| 27 74 20 6e 65 65 64 20 | 55 50 50 73 0d 23 69 66 |'t need |UPPs.#if|
|000015c0| 6e 64 65 66 20 57 41 53 | 54 45 5f 55 53 45 5f 55 |ndef WAS|TE_USE_U|
|000015d0| 50 50 53 0d 23 64 65 66 | 69 6e 65 20 57 41 53 54 |PPS.#def|ine WAST|
|000015e0| 45 5f 55 53 45 5f 55 50 | 50 53 09 09 09 09 09 47 |E_USE_UP|PS.....G|
|000015f0| 45 4e 45 52 41 54 49 4e | 47 43 46 4d 0d 23 65 6e |ENERATIN|GCFM.#en|
|00001600| 64 69 66 0d 0d 2f 2f 20 | 73 65 74 20 57 41 53 54 |dif..// |set WAST|
|00001610| 45 5f 4e 4f 5f 53 59 4e | 43 48 20 74 6f 20 31 20 |E_NO_SYN|CH to 1 |
|00001620| 69 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 77 61 6e |if you d|on't wan|
|00001630| 74 20 57 41 53 54 45 20 | 74 6f 20 73 79 6e 63 68 |t WASTE |to synch|
|00001640| 72 6f 6e 69 7a 65 20 6b | 65 79 62 6f 61 72 64 20 |ronize k|eyboard |
|00001650| 61 6e 64 20 66 6f 6e 74 | 73 0d 23 69 66 6e 64 65 |and font|s.#ifnde|
|00001660| 66 20 57 41 53 54 45 5f | 4e 4f 5f 53 59 4e 43 48 |f WASTE_|NO_SYNCH|
|00001670| 0d 23 64 65 66 69 6e 65 | 20 57 41 53 54 45 5f 4e |.#define| WASTE_N|
|00001680| 4f 5f 53 59 4e 43 48 09 | 09 09 09 09 30 0d 23 65 |O_SYNCH.|....0.#e|
|00001690| 6e 64 69 66 0d 0d 2f 2f | 20 73 65 74 20 57 41 53 |ndif..//| set WAS|
|000016a0| 54 45 5f 4e 4f 5f 52 4f | 5f 43 41 52 45 54 20 74 |TE_NO_RO|_CARET t|
|000016b0| 6f 20 31 20 74 6f 20 68 | 69 64 65 20 74 68 65 20 |o 1 to h|ide the |
|000016c0| 63 61 72 65 74 20 69 6e | 20 72 65 61 64 2d 6f 6e |caret in| read-on|
|000016d0| 6c 79 20 6d 6f 64 65 0d | 23 69 66 6e 64 65 66 20 |ly mode.|#ifndef |
|000016e0| 57 41 53 54 45 5f 4e 4f | 5f 52 4f 5f 43 41 52 45 |WASTE_NO|_RO_CARE|
|000016f0| 54 0d 23 64 65 66 69 6e | 65 20 57 41 53 54 45 5f |T.#defin|e WASTE_|
|00001700| 4e 4f 5f 52 4f 5f 43 41 | 52 45 54 09 09 09 09 31 |NO_RO_CA|RET....1|
|00001710| 0d 23 65 6e 64 69 66 0d | 0d 2f 2f 20 73 65 74 20 |.#endif.|.// set |
|00001720| 57 41 53 54 45 5f 49 43 | 5f 53 55 50 50 4f 52 54 |WASTE_IC|_SUPPORT|
|00001730| 20 74 6f 20 31 20 74 6f | 20 75 73 65 20 44 61 6e | to 1 to| use Dan|
|00001740| 20 43 72 65 76 69 65 72 | 27 73 0d 2f 2f 20 73 75 | Crevier|'s.// su|
|00001750| 70 70 6f 72 74 20 6f 66 | 20 55 52 4c 20 63 6d 64 |pport of| URL cmd|
|00001760| 2d 63 6c 69 63 6b 69 6e | 67 20 74 68 72 6f 75 67 |-clickin|g throug|
|00001770| 68 20 49 6e 74 65 72 6e | 65 74 20 43 6f 6e 66 69 |h Intern|et Confi|
|00001780| 67 0d 23 69 66 6e 64 65 | 66 20 57 41 53 54 45 5f |g.#ifnde|f WASTE_|
|00001790| 49 43 5f 53 55 50 50 4f | 52 54 0d 23 64 65 66 69 |IC_SUPPO|RT.#defi|
|000017a0| 6e 65 20 57 41 53 54 45 | 5f 49 43 5f 53 55 50 50 |ne WASTE|_IC_SUPP|
|000017b0| 4f 52 54 09 09 09 09 31 | 0d 23 65 6e 64 69 66 0d |ORT....1|.#endif.|
|000017c0| 0d 2f 2f 20 49 66 20 57 | 41 53 54 45 5f 4f 42 4a |.// If W|ASTE_OBJ|
|000017d0| 45 43 54 53 5f 41 52 45 | 5f 47 4c 59 50 48 53 20 |ECTS_ARE|_GLYPHS |
|000017e0| 69 73 20 73 65 74 20 74 | 6f 20 30 20 28 64 65 66 |is set t|o 0 (def|
|000017f0| 61 75 6c 74 29 2c 20 57 | 45 47 65 74 4f 66 66 73 |ault), W|EGetOffs|
|00001800| 65 74 20 72 65 74 75 72 | 6e 73 20 6b 4f 62 6a 65 |et retur|ns kObje|
|00001810| 63 74 45 64 67 65 20 69 | 6e 0d 2f 2f 20 74 68 65 |ctEdge i|n.// the|
|00001820| 20 65 64 67 65 20 70 61 | 72 61 6d 65 74 65 72 20 | edge pa|rameter |
|00001830| 77 68 65 6e 20 74 68 65 | 50 6f 69 6e 74 20 69 73 |when the|Point is|
|00001840| 20 69 6e 20 74 68 65 20 | 6d 69 64 64 6c 65 20 68 | in the |middle h|
|00001850| 61 6c 66 20 6f 66 20 61 | 6e 20 6f 62 6a 65 63 74 |alf of a|n object|
|00001860| 3a 20 61 73 20 61 20 72 | 65 73 75 6c 74 2c 0d 2f |: as a r|esult,./|
|00001870| 2f 20 63 6c 69 63 6b 69 | 6e 67 20 69 6e 20 74 68 |/ clicki|ng in th|
|00001880| 65 20 6d 69 64 64 6c 65 | 20 6f 66 20 61 6e 20 6f |e middle| of an o|
|00001890| 62 6a 65 63 74 20 69 6d | 6d 65 64 69 61 74 65 6c |bject im|mediatel|
|000018a0| 79 20 5f 73 65 6c 65 63 | 74 73 5f 20 74 68 65 20 |y _selec|ts_ the |
|000018b0| 6f 62 6a 65 63 74 2c 20 | 73 6f 20 74 68 61 74 20 |object, |so that |
|000018c0| 61 20 73 65 63 6f 6e 64 | 0d 2f 2f 20 63 6c 69 63 |a second|.// clic|
|000018d0| 6b 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 66 6f |k immedi|ately fo|
|000018e0| 6c 6c 6f 77 69 6e 67 20 | 74 72 69 67 67 65 72 73 |llowing |triggers|
|000018f0| 20 74 68 65 20 27 63 6c | 69 6b 27 20 63 61 6c 6c | the 'cl|ik' call|
|00001900| 62 61 63 6b 20 28 74 68 | 69 73 20 63 61 6e 20 62 |back (th|is can b|
|00001910| 65 20 68 61 6e 64 79 20 | 74 6f 20 6d 61 6b 65 0d |e handy |to make.|
|00001920| 2f 2f 20 73 6f 75 6e 64 | 20 6f 62 6a 65 63 74 73 |// sound| objects|
|00001930| 20 70 6c 61 79 20 77 68 | 65 6e 20 74 68 65 79 20 | play wh|en they |
|00001940| 61 72 65 20 64 6f 75 62 | 6c 65 2d 63 6c 69 63 6b |are doub|le-click|
|00001950| 65 64 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 29 |ed, for |example)|
|00001960| 2e 0d 0d 2f 2f 20 49 66 | 20 57 41 53 54 45 5f 4f |...// If| WASTE_O|
|00001970| 42 4a 45 43 54 53 5f 41 | 52 45 5f 47 4c 59 50 48 |BJECTS_A|RE_GLYPH|
|00001980| 53 20 69 73 20 73 65 74 | 20 74 6f 20 31 2c 20 57 |S is set| to 1, W|
|00001990| 45 47 65 74 4f 66 66 73 | 65 74 20 74 72 65 61 74 |EGetOffs|et treat|
|000019a0| 73 20 65 6d 62 65 64 64 | 65 64 20 6f 62 6a 65 63 |s embedd|ed objec|
|000019b0| 74 73 0d 2f 2f 20 6c 69 | 6b 65 20 6f 72 64 69 6e |ts.// li|ke ordin|
|000019c0| 61 72 79 20 67 6c 79 70 | 68 73 20 61 6e 64 20 6e |ary glyp|hs and n|
|000019d0| 65 76 65 72 20 72 65 74 | 75 72 6e 73 20 6b 4f 62 |ever ret|urns kOb|
|000019e0| 6a 65 63 74 45 64 67 65 | 20 69 6e 20 74 68 65 20 |jectEdge| in the |
|000019f0| 65 64 67 65 20 70 61 72 | 61 6d 65 74 65 72 3a 0d |edge par|ameter:.|
|00001a00| 2f 2f 20 61 73 20 61 20 | 72 65 73 75 6c 74 2c 20 |// as a |result, |
|00001a10| 63 6c 69 63 6b 69 6e 67 | 20 69 6e 20 74 68 65 20 |clicking| in the |
|00001a20| 6d 69 64 64 6c 65 20 6f | 66 20 61 6e 20 6f 62 6a |middle o|f an obj|
|00001a30| 65 63 74 20 61 6c 77 61 | 79 73 20 70 6f 73 69 74 |ect alwa|ys posit|
|00001a40| 69 6f 6e 73 20 74 68 65 | 20 63 61 72 65 74 20 65 |ions the| caret e|
|00001a50| 69 74 68 65 72 0d 2f 2f | 20 74 6f 20 74 68 65 20 |ither.//| to the |
|00001a60| 6c 65 66 74 20 6f 72 20 | 74 6f 20 74 68 65 20 72 |left or |to the r|
|00001a70| 69 67 68 74 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 |ight of |the obje|
|00001a80| 63 74 2e 0d 0d 23 69 66 | 6e 64 65 66 20 57 41 53 |ct...#if|ndef WAS|
|00001a90| 54 45 5f 4f 42 4a 45 43 | 54 53 5f 41 52 45 5f 47 |TE_OBJEC|TS_ARE_G|
|00001aa0| 4c 59 50 48 53 0d 23 64 | 65 66 69 6e 65 20 57 41 |LYPHS.#d|efine WA|
|00001ab0| 53 54 45 5f 4f 42 4a 45 | 43 54 53 5f 41 52 45 5f |STE_OBJE|CTS_ARE_|
|00001ac0| 47 4c 59 50 48 53 09 09 | 30 0d 23 65 6e 64 69 66 |GLYPHS..|0.#endif|
|00001ad0| 0d 0d 2f 2f 20 73 65 74 | 20 57 41 53 54 45 5f 52 |..// set| WASTE_R|
|00001ae0| 45 53 4f 4c 56 45 5f 46 | 4f 4e 54 5f 44 45 53 49 |ESOLVE_F|ONT_DESI|
|00001af0| 47 4e 41 54 4f 52 53 20 | 74 6f 20 66 61 6c 73 65 |GNATORS |to false|
|00001b00| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 77 61 | if you |don't wa|
|00001b10| 6e 74 20 57 41 53 54 45 | 20 74 6f 0d 2f 2f 20 6d |nt WASTE| to.// m|
|00001b20| 61 70 20 66 6f 6e 74 20 | 64 65 73 69 67 6e 61 74 |ap font |designat|
|00001b30| 6f 72 73 20 28 74 68 65 | 20 73 70 65 63 69 61 6c |ors (the| special|
|00001b40| 20 49 44 73 20 30 20 61 | 6e 64 20 31 20 74 68 61 | IDs 0 a|nd 1 tha|
|00001b50| 74 20 69 64 65 6e 74 69 | 66 79 20 74 68 65 20 73 |t identi|fy the s|
|00001b60| 79 73 74 65 6d 0d 2f 2f | 20 61 6e 64 20 61 70 70 |ystem.//| and app|
|00001b70| 6c 69 63 61 74 69 6f 6e | 20 66 6f 6e 74 73 2c 20 |lication| fonts, |
|00001b80| 72 65 73 70 65 63 74 69 | 76 65 6c 79 29 20 74 6f |respecti|vely) to|
|00001b90| 20 74 68 65 20 61 63 74 | 75 61 6c 20 66 6f 6e 74 | the act|ual font|
|00001ba0| 20 49 44 73 2e 0d 0d 23 | 69 66 6e 64 65 66 20 57 | IDs...#|ifndef W|
|00001bb0| 41 53 54 45 5f 52 45 53 | 4f 4c 56 45 5f 46 4f 4e |ASTE_RES|OLVE_FON|
|00001bc0| 54 5f 44 45 53 49 47 4e | 41 54 4f 52 53 0d 23 64 |T_DESIGN|ATORS.#d|
|00001bd0| 65 66 69 6e 65 20 57 41 | 53 54 45 5f 52 45 53 4f |efine WA|STE_RESO|
|00001be0| 4c 56 45 5f 46 4f 4e 54 | 5f 44 45 53 49 47 4e 41 |LVE_FONT|_DESIGNA|
|00001bf0| 54 4f 52 53 09 31 0d 23 | 65 6e 64 69 66 0d 0d 2f |TORS.1.#|endif../|
|00001c00| 2f 20 73 65 74 20 57 41 | 53 54 45 5f 57 45 43 41 |/ set WA|STE_WECA|
|00001c10| 4c 54 45 58 54 5f 44 4f | 45 53 5f 52 45 44 52 41 |LTEXT_DO|ES_REDRA|
|00001c20| 57 20 74 6f 20 31 20 69 | 66 20 79 6f 75 20 77 61 |W to 1 i|f you wa|
|00001c30| 6e 74 20 57 45 43 61 6c | 54 65 78 74 28 29 0d 2f |nt WECal|Text()./|
|00001c40| 2f 20 74 6f 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |/ to aut|omatical|
|00001c50| 6c 79 20 72 65 64 72 61 | 77 20 61 6c 6c 20 74 68 |ly redra|w all th|
|00001c60| 65 20 74 65 78 74 20 28 | 61 73 20 69 6e 20 57 41 |e text (|as in WA|
|00001c70| 53 54 45 20 31 2e 31 20 | 66 69 6e 61 6c 29 0d 0d |STE 1.1 |final)..|
|00001c80| 23 69 66 6e 64 65 66 20 | 57 41 53 54 45 5f 57 45 |#ifndef |WASTE_WE|
|00001c90| 43 41 4c 54 45 58 54 5f | 44 4f 45 53 5f 52 45 44 |CALTEXT_|DOES_RED|
|00001ca0| 52 41 57 0d 23 64 65 66 | 69 6e 65 20 57 41 53 54 |RAW.#def|ine WAST|
|00001cb0| 45 5f 57 45 43 41 4c 54 | 45 58 54 5f 44 4f 45 53 |E_WECALT|EXT_DOES|
|00001cc0| 5f 52 45 44 52 41 57 09 | 09 30 0d 23 65 6e 64 69 |_REDRAW.|.0.#endi|
|00001cd0| 66 0d 0d 2f 2f 20 73 65 | 74 20 57 41 53 54 45 5f |f..// se|t WASTE_|
|00001ce0| 54 52 41 4e 53 4c 55 43 | 45 4e 54 5f 44 52 41 47 |TRANSLUC|ENT_DRAG|
|00001cf0| 53 20 74 6f 20 31 20 69 | 66 20 79 6f 75 20 77 61 |S to 1 i|f you wa|
|00001d00| 6e 74 20 74 6f 20 62 65 | 20 61 62 6c 65 20 74 6f |nt to be| able to|
|00001d10| 0d 2f 2f 20 75 73 65 20 | 74 72 61 6e 73 6c 75 63 |.// use |transluc|
|00001d20| 65 6e 74 20 64 72 61 67 | 67 69 6e 67 20 66 6f 72 |ent drag|ging for|
|00001d30| 20 74 65 78 74 0d 0d 23 | 69 66 6e 64 65 66 20 57 | text..#|ifndef W|
|00001d40| 41 53 54 45 5f 54 52 41 | 4e 53 4c 55 43 45 4e 54 |ASTE_TRA|NSLUCENT|
|00001d50| 5f 44 52 41 47 53 0d 23 | 64 65 66 69 6e 65 20 57 |_DRAGS.#|define W|
|00001d60| 41 53 54 45 5f 54 52 41 | 4e 53 4c 55 43 45 4e 54 |ASTE_TRA|NSLUCENT|
|00001d70| 5f 44 52 41 47 53 09 09 | 09 30 0d 23 65 6e 64 69 |_DRAGS..|.0.#endi|
|00001d80| 66 0d 0d 2f 2f 20 73 65 | 74 20 57 41 53 54 45 5f |f..// se|t WASTE_|
|00001d90| 53 43 41 4c 45 20 74 6f | 20 31 20 74 6f 20 73 75 |SCALE to| 1 to su|
|00001da0| 70 70 6f 72 74 20 73 63 | 61 6c 69 6e 67 0d 23 69 |pport sc|aling.#i|
|00001db0| 66 6e 64 65 66 20 57 41 | 53 54 45 5f 53 43 41 4c |fndef WA|STE_SCAL|
|00001dc0| 45 0d 23 64 65 66 69 6e | 65 20 57 41 53 54 45 5f |E.#defin|e WASTE_|
|00001dd0| 53 43 41 4c 45 09 09 09 | 09 31 0d 23 65 6e 64 69 |SCALE...|.1.#endi|
|00001de0| 66 0d 0d 2f 2f 20 6d 61 | 63 72 6f 73 20 66 6f 72 |f..// ma|cros for|
|00001df0| 20 64 65 62 75 67 67 69 | 6e 67 0d 0d 23 69 66 20 | debuggi|ng..#if |
|00001e00| 57 41 53 54 45 5f 44 45 | 42 55 47 0d 23 64 65 66 |WASTE_DE|BUG.#def|
|00001e10| 69 6e 65 20 57 45 41 53 | 53 45 52 54 28 43 4f 4e |ine WEAS|SERT(CON|
|00001e20| 44 49 54 49 4f 4e 2c 20 | 57 41 52 4e 49 4e 47 29 |DITION, |WARNING)|
|00001e30| 09 7b 20 69 66 20 28 21 | 28 43 4f 4e 44 49 54 49 |.{ if (!|(CONDITI|
|00001e40| 4f 4e 29 29 20 44 65 62 | 75 67 53 74 72 28 57 41 |ON)) Deb|ugStr(WA|
|00001e50| 52 4e 49 4e 47 29 3b 20 | 7d 0d 23 65 6c 73 65 0d |RNING); |}.#else.|
|00001e60| 23 64 65 66 69 6e 65 20 | 57 45 41 53 53 45 52 54 |#define |WEASSERT|
|00001e70| 28 43 4f 4e 44 49 54 49 | 4f 4e 2c 20 57 41 52 4e |(CONDITI|ON, WARN|
|00001e80| 49 4e 47 29 0d 23 65 6e | 64 69 66 0d 0d 2f 2f 20 |ING).#en|dif..// |
|00001e90| 64 65 74 65 72 6d 69 6e | 65 20 69 66 20 69 6e 6c |determin|e if inl|
|00001ea0| 69 6e 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 72 |ine func|tions ar|
|00001eb0| 65 20 73 75 70 70 6f 72 | 74 65 64 0d 0d 23 69 66 |e suppor|ted..#if|
|00001ec0| 20 64 65 66 69 6e 65 64 | 28 5f 5f 63 70 6c 75 73 | defined|(__cplus|
|00001ed0| 70 6c 75 73 29 20 7c 7c | 20 64 65 66 69 6e 65 64 |plus) ||| defined|
|00001ee0| 28 5f 5f 4d 57 45 52 4b | 53 5f 5f 29 0d 23 64 65 |(__MWERK|S__).#de|
|00001ef0| 66 69 6e 65 20 49 4e 4c | 49 4e 45 20 69 6e 6c 69 |fine INL|INE inli|
|00001f00| 6e 65 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |ne.#else|.#define|
|00001f10| 20 49 4e 4c 49 4e 45 20 | 73 74 61 74 69 63 0d 23 | INLINE |static.#|
|00001f20| 65 6e 64 69 66 0d 0d 2f | 2f 20 72 65 73 75 6c 74 |endif../|/ result|
|00001f30| 20 63 6f 64 65 73 0d 65 | 6e 75 6d 0d 7b 0d 09 77 | codes.e|num.{..w|
|00001f40| 65 4e 6f 44 72 61 67 45 | 72 72 20 09 09 09 09 3d |eNoDragE|rr ....=|
|00001f50| 20 09 31 32 38 09 09 2f | 2f 20 63 61 6e 20 62 65 | .128../|/ can be|
|00001f60| 20 72 65 74 75 72 6e 65 | 64 20 69 6e 74 65 72 6e | returne|d intern|
|00001f70| 61 6c 6c 79 20 62 79 20 | 5f 57 45 44 72 61 67 0d |ally by |_WEDrag.|
|00001f80| 7d 3b 0d 0d 2f 2f 20 61 | 63 74 69 6f 6e 20 66 6c |};..// a|ction fl|
|00001f90| 61 67 73 0d 65 6e 75 6d | 0d 7b 0d 09 77 65 41 46 |ags.enum|.{..weAF|
|00001fa0| 49 73 52 65 64 6f 09 09 | 09 3d 09 30 78 30 30 30 |IsRedo..|.=.0x000|
|00001fb0| 31 2c 09 2f 2f 20 61 63 | 74 69 6f 6e 20 73 61 76 |1,.// ac|tion sav|
|00001fc0| 65 73 20 65 64 69 74 20 | 73 74 61 74 65 20 70 72 |es edit |state pr|
|00001fd0| 69 6f 72 20 74 6f 20 61 | 20 57 45 55 6e 64 6f 20 |ior to a| WEUndo |
|00001fe0| 63 61 6c 6c 0d 09 77 65 | 41 46 44 6f 6e 74 53 61 |call..we|AFDontSa|
|00001ff0| 76 65 54 65 78 74 09 3d | 09 30 78 30 30 30 32 2c |veText.=|.0x0002,|
|00002000| 20 2f 2f 20 64 6f 6e 27 | 74 20 73 61 76 65 20 74 | // don'|t save t|
|00002010| 65 78 74 0d 09 77 65 41 | 46 44 6f 6e 74 53 61 76 |ext..weA|FDontSav|
|00002020| 65 53 74 79 6c 65 73 09 | 3d 09 30 78 30 30 30 34 |eStyles.|=.0x0004|
|00002030| 2c 09 2f 2f 20 64 6f 6e | 27 74 20 73 61 76 65 20 |,.// don|'t save |
|00002040| 73 74 79 6c 65 73 0d 09 | 77 65 41 46 44 6f 6e 74 |styles..|weAFDont|
|00002050| 53 61 76 65 53 6f 75 70 | 09 3d 09 30 78 30 30 30 |SaveSoup|.=.0x000|
|00002060| 38 09 2f 2f 20 64 6f 6e | 27 74 20 73 61 76 65 20 |8.// don|'t save |
|00002070| 73 6f 75 70 0d 7d 3b 0d | 0d 2f 2f 20 64 6f 6d 69 |soup.};.|.// domi|
|00002080| 6e 61 6e 74 20 6c 69 6e | 65 20 64 69 72 65 63 74 |nant lin|e direct|
|00002090| 69 6f 6e 73 0d 0d 23 64 | 65 66 69 6e 65 20 49 73 |ions..#d|efine Is|
|000020a0| 52 69 67 68 74 54 6f 4c | 65 66 74 28 64 69 72 65 |RightToL|eft(dire|
|000020b0| 63 74 69 6f 6e 29 09 28 | 28 28 64 69 72 65 63 74 |ction).(|((direct|
|000020c0| 69 6f 6e 29 20 3d 3d 20 | 77 65 44 69 72 52 69 67 |ion) == |weDirRig|
|000020d0| 68 74 54 6f 4c 65 66 74 | 29 20 7c 7c 20 28 28 28 |htToLeft|) || (((|
|000020e0| 64 69 72 65 63 74 69 6f | 6e 29 20 3d 3d 20 77 65 |directio|n) == we|
|000020f0| 44 69 72 44 65 66 61 75 | 6c 74 29 20 26 26 20 28 |DirDefau|lt) && (|
|00002100| 47 65 74 53 79 73 44 69 | 72 65 63 74 69 6f 6e 28 |GetSysDi|rection(|
|00002110| 29 20 21 3d 20 30 29 29 | 29 0d 0d 2f 2f 20 63 6f |) != 0))|)..// co|
|00002120| 6e 74 72 6f 6c 20 63 68 | 61 72 61 63 74 65 72 20 |ntrol ch|aracter |
|00002130| 63 6f 64 65 73 0d 65 6e | 75 6d 0d 7b 0d 09 6b 4f |codes.en|um.{..kO|
|00002140| 62 6a 65 63 74 4d 61 72 | 6b 65 72 20 09 09 3d 09 |bjectMar|ker ..=.|
|00002150| 30 78 30 31 2c 0d 09 6b | 42 61 63 6b 73 70 61 63 |0x01,..k|Backspac|
|00002160| 65 20 09 09 09 3d 09 30 | 78 30 38 2c 0d 09 6b 54 |e ...=.0|x08,..kT|
|00002170| 61 62 20 09 09 09 09 3d | 09 30 78 30 39 2c 0d 09 |ab ....=|.0x09,..|
|00002180| 6b 45 4f 4c 20 09 09 09 | 09 3d 09 30 78 30 44 2c |kEOL ...|.=.0x0D,|
|00002190| 0d 09 6b 41 72 72 6f 77 | 4c 65 66 74 20 09 09 09 |..kArrow|Left ...|
|000021a0| 3d 09 30 78 31 43 2c 0d | 09 6b 41 72 72 6f 77 52 |=.0x1C,.|.kArrowR|
|000021b0| 69 67 68 74 20 09 09 3d | 09 30 78 31 44 2c 0d 09 |ight ..=|.0x1D,..|
|000021c0| 6b 41 72 72 6f 77 55 70 | 20 09 09 09 3d 09 30 78 |kArrowUp| ...=.0x|
|000021d0| 31 45 2c 0d 09 6b 41 72 | 72 6f 77 44 6f 77 6e 20 |1E,..kAr|rowDown |
|000021e0| 09 09 09 3d 09 30 78 31 | 46 2c 0d 09 6b 53 70 61 |...=.0x1|F,..kSpa|
|000021f0| 63 65 20 09 09 09 09 3d | 20 20 09 30 78 32 30 2c |ce ....=| .0x20,|
|00002200| 0d 09 6b 46 6f 72 77 61 | 72 64 44 65 6c 65 74 65 |..kForwa|rdDelete|
|00002210| 20 09 09 3d 09 30 78 37 | 46 0d 7d 3b 0d 0d 2f 2f | ..=.0x7|F.};..//|
|00002220| 20 62 69 74 20 65 71 75 | 61 74 65 73 20 66 6f 72 | bit equ|ates for|
|00002230| 20 74 68 65 20 74 73 46 | 6c 61 67 73 20 66 69 65 | the tsF|lags fie|
|00002240| 6c 64 20 6f 66 20 74 68 | 65 20 57 45 54 65 78 74 |ld of th|e WEText|
|00002250| 53 74 79 6c 65 20 72 65 | 63 6f 72 64 0d 65 6e 75 |Style re|cord.enu|
|00002260| 6d 0d 7b 0d 09 74 73 54 | 53 4d 48 69 6c 69 74 65 |m.{..tsT|SMHilite|
|00002270| 20 09 09 3d 09 34 2c 09 | 09 2f 2f 20 73 65 74 20 | ..=.4,.|.// set |
|00002280| 69 66 20 73 74 79 6c 65 | 20 72 75 6e 20 69 73 20 |if style| run is |
|00002290| 70 61 72 74 20 6f 66 20 | 61 63 74 69 76 65 20 69 |part of |active i|
|000022a0| 6e 70 75 74 20 61 72 65 | 61 0d 09 74 73 54 53 4d |nput are|a..tsTSM|
|000022b0| 53 65 6c 65 63 74 65 64 | 20 09 09 3d 09 35 2c 09 |Selected| ..=.5,.|
|000022c0| 09 2f 2f 20 73 65 74 20 | 66 6f 72 20 73 65 6c 65 |.// set |for sele|
|000022d0| 63 74 65 64 20 72 61 77 | 2f 63 6f 6e 76 65 72 74 |cted raw|/convert|
|000022e0| 65 64 20 74 65 78 74 0d | 09 74 73 54 53 4d 43 6f |ed text.|.tsTSMCo|
|000022f0| 6e 76 65 72 74 65 64 20 | 09 09 3d 09 36 2c 09 09 |nverted |..=.6,..|
|00002300| 2f 2f 20 73 65 74 20 66 | 6f 72 20 63 6f 6e 76 65 |// set f|or conve|
|00002310| 72 74 65 64 20 74 65 78 | 74 2c 20 63 6c 65 61 72 |rted tex|t, clear|
|00002320| 20 66 6f 72 20 72 61 77 | 20 74 65 78 74 0d 09 74 | for raw| text..t|
|00002330| 73 52 69 67 68 74 54 6f | 4c 65 66 74 20 09 09 3d |sRightTo|Left ..=|
|00002340| 09 37 09 09 2f 2f 20 73 | 65 74 20 66 6f 72 20 72 |.7..// s|et for r|
|00002350| 69 67 68 74 2d 74 6f 2d | 6c 65 66 74 20 72 75 6e |ight-to-|left run|
|00002360| 73 0d 7d 3b 0d 0d 2f 2f | 20 62 69 74 20 65 71 75 |s.};..//| bit equ|
|00002370| 61 74 65 73 20 66 6f 72 | 20 74 68 65 20 6d 6f 64 |ates for| the mod|
|00002380| 65 20 70 61 72 61 6d 65 | 74 65 72 20 69 6e 20 57 |e parame|ter in W|
|00002390| 45 53 65 74 53 74 79 6c | 65 20 61 6e 64 20 57 45 |ESetStyl|e and WE|
|000023a0| 43 6f 6e 74 69 6e 75 6f | 75 73 53 74 79 6c 65 0d |Continuo|usStyle.|
|000023b0| 2f 2f 65 6e 75 6d 0d 2f | 2f 7b 0d 2f 2f 09 6b 4d |//enum./|/{.//.kM|
|000023c0| 6f 64 65 46 6f 6e 74 20 | 09 09 09 3d 09 30 2c 09 |odeFont |...=.0,.|
|000023d0| 09 2f 2f 20 63 68 61 6e | 67 65 20 66 6f 6e 74 0d |.// chan|ge font.|
|000023e0| 2f 2f 09 6b 4d 6f 64 65 | 46 61 63 65 20 09 09 09 |//.kMode|Face ...|
|000023f0| 3d 09 31 2c 09 09 2f 2f | 20 63 68 61 6e 67 65 20 |=.1,..//| change |
|00002400| 51 75 69 63 6b 64 72 61 | 77 20 73 74 79 6c 65 73 |Quickdra|w styles|
|00002410| 0d 2f 2f 09 6b 4d 6f 64 | 65 53 69 7a 65 20 09 09 |.//.kMod|eSize ..|
|00002420| 09 3d 09 32 2c 09 09 2f | 2f 20 63 68 61 6e 67 65 |.=.2,../|/ change|
|00002430| 20 70 6f 69 6e 74 20 73 | 69 7a 65 0d 2f 2f 09 6b | point s|ize.//.k|
|00002440| 4d 6f 64 65 43 6f 6c 6f | 72 20 09 09 09 3d 09 33 |ModeColo|r ...=.3|
|00002450| 2c 09 09 2f 2f 20 63 68 | 61 6e 67 65 20 63 6f 6c |,..// ch|ange col|
|00002460| 6f 72 0d 2f 2f 09 6b 4d | 6f 64 65 41 64 64 53 69 |or.//.kM|odeAddSi|
|00002470| 7a 65 20 09 09 3d 09 34 | 2c 09 09 2f 2f 20 61 64 |ze ..=.4|,..// ad|
|00002480| 64 20 74 73 53 69 7a 65 | 20 74 6f 20 65 78 69 73 |d tsSize| to exis|
|00002490| 74 69 6e 67 20 73 69 7a | 65 0d 2f 2f 09 6b 4d 6f |ting siz|e.//.kMo|
|000024a0| 64 65 54 6f 67 67 6c 65 | 46 61 63 65 20 09 3d 09 |deToggle|Face .=.|
|000024b0| 35 2c 09 09 2f 2f 20 74 | 6f 67 67 6c 65 20 63 6f |5,..// t|oggle co|
|000024c0| 6e 74 69 6e 75 6f 75 73 | 20 73 74 79 6c 65 73 20 |ntinuous| styles |
|000024d0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 73 65 74 74 |rather t|han sett|
|000024e0| 69 6e 67 20 74 68 65 6d | 0d 2f 2f 09 6b 4d 6f 64 |ing them|.//.kMod|
|000024f0| 65 52 65 70 6c 61 63 65 | 46 61 63 65 20 09 3d 09 |eReplace|Face .=.|
|00002500| 36 2c 09 09 2f 2f 20 74 | 73 46 61 63 65 20 72 65 |6,..// t|sFace re|
|00002510| 70 6c 61 63 65 73 20 65 | 78 69 73 74 69 6e 67 20 |places e|xisting |
|00002520| 73 74 79 6c 65 73 20 6f | 75 74 72 69 67 68 74 0d |styles o|utright.|
|00002530| 2f 2f 09 6b 4d 6f 64 65 | 50 72 65 73 65 72 76 65 |//.kMode|Preserve|
|00002540| 53 63 72 69 70 74 20 3d | 09 37 2c 09 09 2f 2f 20 |Script =|.7,..// |
|00002550| 61 70 70 6c 79 20 66 6f | 6e 74 20 74 6f 20 72 75 |apply fo|nt to ru|
|00002560| 6e 73 20 6f 66 20 73 61 | 6d 65 20 73 63 72 69 70 |ns of sa|me scrip|
|00002570| 74 20 6f 6e 6c 79 0d 2f | 2f 09 6b 4d 6f 64 65 45 |t only./|/.kModeE|
|00002580| 78 74 72 61 63 74 53 75 | 62 73 63 72 69 70 74 20 |xtractSu|bscript |
|00002590| 3d 20 38 2c 09 09 2f 2f | 20 61 70 70 6c 79 20 66 |= 8,..//| apply f|
|000025a0| 6f 6e 74 20 74 6f 20 65 | 6c 69 67 69 62 6c 65 20 |ont to e|ligible |
|000025b0| 73 75 62 72 75 6e 73 20 | 6f 66 20 64 69 66 66 65 |subruns |of diffe|
|000025c0| 72 65 6e 74 20 73 63 72 | 69 70 74 0d 2f 2f 09 6b |rent scr|ipt.//.k|
|000025d0| 4d 6f 64 65 46 61 63 65 | 4d 61 73 6b 20 09 09 3d |ModeFace|Mask ..=|
|000025e0| 20 09 39 2c 09 09 2f 2f | 20 63 68 61 6e 67 65 20 | .9,..//| change |
|000025f0| 51 75 69 63 6b 64 72 61 | 77 20 73 74 79 6c 65 73 |Quickdra|w styles|
|00002600| 3b 20 75 73 65 20 6d 61 | 73 6b 0d 2f 2f 09 6b 4d |; use ma|sk.//.kM|
|00002610| 6f 64 65 53 74 79 6c 65 | 72 09 20 09 09 3d 20 09 |odeStyle|r. ..= .|
|00002620| 31 33 2c 09 09 2f 2f 20 | 63 68 61 6e 67 65 20 74 |13,..// |change t|
|00002630| 73 53 74 79 6c 65 72 20 | 66 69 65 6c 64 0d 2f 2f |sStyler |field.//|
|00002640| 09 6b 4d 6f 64 65 4f 62 | 6a 65 63 74 20 09 09 3d |.kModeOb|ject ..=|
|00002650| 20 09 31 34 2c 09 09 2f | 2f 20 63 68 61 6e 67 65 | .14,../|/ change|
|00002660| 20 74 73 4f 62 6a 65 63 | 74 20 66 69 65 6c 64 0d | tsObjec|t field.|
|00002670| 2f 2f 09 6b 4d 6f 64 65 | 46 6c 61 67 73 20 09 09 |//.kMode|Flags ..|
|00002680| 09 3d 20 09 31 35 09 09 | 2f 2f 20 63 68 61 6e 67 |.= .15..|// chang|
|00002690| 65 20 74 73 46 6c 61 67 | 73 20 66 69 65 6c 64 0d |e tsFlag|s field.|
|000026a0| 2f 2f 7d 3b 0d 0d 2f 2f | 20 76 61 6c 75 65 73 20 |//};..//| values |
|000026b0| 66 6f 72 20 74 68 65 20 | 6d 6f 64 65 20 70 61 72 |for the |mode par|
|000026c0| 61 6d 65 74 65 72 20 69 | 6e 20 57 45 53 65 74 53 |ameter i|n WESetS|
|000026d0| 74 79 6c 65 20 61 6e 64 | 20 57 45 43 6f 6e 74 69 |tyle and| WEConti|
|000026e0| 6e 75 6f 75 73 53 74 79 | 6c 65 0d 65 6e 75 6d 0d |nuousSty|le.enum.|
|000026f0| 7b 0d 09 77 65 44 6f 53 | 6d 61 72 74 46 6f 6e 74 |{..weDoS|martFont|
|00002700| 09 09 09 3d 09 77 65 44 | 6f 46 6f 6e 74 20 2b 20 |...=.weD|oFont + |
|00002710| 77 65 44 6f 50 72 65 73 | 65 72 76 65 53 63 72 69 |weDoPres|erveScri|
|00002720| 70 74 2c 0d 09 77 65 44 | 6f 53 74 79 6c 65 72 09 |pt,..weD|oStyler.|
|00002730| 09 09 09 3d 09 31 20 3c | 3c 20 31 33 2c 0d 09 77 |...=.1 <|< 13,..w|
|00002740| 65 44 6f 4f 62 6a 65 63 | 74 09 09 09 09 3d 09 31 |eDoObjec|t....=.1|
|00002750| 20 3c 3c 20 31 34 2c 0d | 09 77 65 44 6f 46 6c 61 | << 14,.|.weDoFla|
|00002760| 67 73 09 09 09 09 3d 09 | 31 20 3c 3c 20 31 35 0d |gs....=.|1 << 15.|
|00002770| 7d 3b 0d 0d 2f 2f 20 62 | 69 74 20 65 71 75 61 74 |};..// b|it equat|
|00002780| 65 73 20 66 6f 72 20 74 | 68 65 20 66 6c 61 67 73 |es for t|he flags|
|00002790| 20 66 69 65 6c 64 20 69 | 6e 20 74 68 65 20 57 45 | field i|n the WE|
|000027a0| 20 72 65 63 6f 72 64 0d | 65 6e 75 6d 0d 7b 0d 09 | record.|enum.{..|
|000027b0| 77 65 46 48 61 73 43 6f | 6c 6f 72 51 44 20 09 09 |weFHasCo|lorQD ..|
|000027c0| 09 3d 09 33 31 2c 09 09 | 2f 2f 20 43 6f 6c 6f 72 |.=.31,..|// Color|
|000027d0| 20 51 75 69 63 6b 64 72 | 61 77 20 69 73 20 61 76 | Quickdr|aw is av|
|000027e0| 61 69 6c 61 62 6c 65 0d | 09 77 65 46 48 61 73 44 |ailable.|.weFHasD|
|000027f0| 72 61 67 4d 61 6e 61 67 | 65 72 20 09 09 3d 09 33 |ragManag|er ..=.3|
|00002800| 30 2c 09 09 2f 2f 20 74 | 68 65 20 44 72 61 67 20 |0,..// t|he Drag |
|00002810| 4d 61 6e 61 67 65 72 20 | 69 73 20 61 76 61 69 6c |Manager |is avail|
|00002820| 61 62 6c 65 0d 09 77 65 | 46 48 61 73 54 65 78 74 |able..we|FHasText|
|00002830| 53 65 72 76 69 63 65 73 | 09 09 3d 09 32 39 2c 09 |Services|..=.29,.|
|00002840| 09 2f 2f 20 74 68 65 20 | 54 65 78 74 20 53 65 72 |.// the |Text Ser|
|00002850| 76 69 63 65 73 20 4d 61 | 6e 61 67 65 72 20 69 73 |vices Ma|nager is|
|00002860| 20 61 76 61 69 6c 61 62 | 6c 65 0d 09 77 65 46 4e | availab|le..weFN|
|00002870| 6f 6e 52 6f 6d 61 6e 09 | 09 09 09 3d 09 32 38 2c |onRoman.|...=.28,|
|00002880| 09 09 2f 2f 20 61 74 20 | 6c 65 61 73 74 20 6f 6e |..// at |least on|
|00002890| 65 20 6e 6f 6e 2d 52 6f | 6d 61 6e 20 73 63 72 69 |e non-Ro|man scri|
|000028a0| 70 74 20 69 73 20 65 6e | 61 62 6c 65 64 0d 09 77 |pt is en|abled..w|
|000028b0| 65 46 44 6f 75 62 6c 65 | 42 79 74 65 09 09 09 3d |eFDouble|Byte...=|
|000028c0| 09 32 37 2c 09 09 2f 2f | 20 61 20 64 6f 75 62 6c |.27,..//| a doubl|
|000028d0| 65 2d 62 79 74 65 20 73 | 63 72 69 70 74 20 69 73 |e-byte s|cript is|
|000028e0| 20 65 6e 61 62 6c 65 64 | 0d 09 77 65 46 42 69 64 | enabled|..weFBid|
|000028f0| 69 72 65 63 74 69 6f 6e | 61 6c 09 09 3d 09 32 36 |irection|al..=.26|
|00002900| 2c 09 09 2f 2f 20 61 20 | 62 69 64 69 72 65 63 74 |,..// a |bidirect|
|00002910| 69 6f 6e 61 6c 20 73 63 | 72 69 70 74 20 69 73 20 |ional sc|ript is |
|00002920| 65 6e 61 62 6c 65 64 0d | 09 77 65 46 43 61 72 65 |enabled.|.weFCare|
|00002930| 74 52 69 67 68 74 09 09 | 09 3d 09 32 35 2c 09 09 |tRight..|.=.25,..|
|00002940| 2f 2f 20 73 65 74 20 69 | 66 20 63 61 72 65 74 20 |// set i|f caret |
|00002950| 77 61 73 20 64 72 61 77 | 6e 20 66 6f 72 20 52 2d |was draw|n for R-|
|00002960| 4c 20 6b 65 79 62 6f 61 | 72 64 20 73 63 72 69 70 |L keyboa|rd scrip|
|00002970| 74 0d 09 77 65 46 43 61 | 72 65 74 56 69 73 69 62 |t..weFCa|retVisib|
|00002980| 6c 65 09 09 09 3d 09 32 | 34 2c 09 09 2f 2f 20 74 |le...=.2|4,..// t|
|00002990| 68 65 20 63 61 72 65 74 | 20 69 73 20 63 75 72 72 |he caret| is curr|
|000029a0| 65 6e 74 6c 79 20 76 69 | 73 69 62 6c 65 0d 09 77 |ently vi|sible..w|
|000029b0| 65 46 4d 6f 75 73 65 54 | 72 61 63 6b 69 6e 67 09 |eFMouseT|racking.|
|000029c0| 09 3d 09 32 33 2c 09 09 | 2f 2f 20 73 65 74 20 69 |.=.23,..|// set i|
|000029d0| 6e 74 65 72 6e 61 6c 6c | 79 20 64 75 72 69 6e 67 |nternall|y during|
|000029e0| 20 6d 6f 75 73 65 20 74 | 72 61 63 6b 69 6e 67 0d | mouse t|racking.|
|000029f0| 09 77 65 46 41 6e 63 68 | 6f 72 49 73 45 6e 64 09 |.weFAnch|orIsEnd.|
|00002a00| 09 09 3d 09 32 32 2c 09 | 09 2f 2f 20 61 6e 63 68 |..=.22,.|.// anch|
|00002a10| 6f 72 20 6f 66 66 73 65 | 74 20 69 73 20 73 65 6c |or offse|t is sel|
|00002a20| 45 6e 64 0d 09 77 65 46 | 55 73 65 4e 75 6c 6c 53 |End..weF|UseNullS|
|00002a30| 74 79 6c 65 09 09 09 3d | 09 32 31 2c 09 09 2f 2f |tyle...=|.21,..//|
|00002a40| 20 61 20 6e 75 6c 6c 20 | 73 74 79 6c 65 20 69 73 | a null |style is|
|00002a50| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00002a60| 20 74 68 65 20 65 6d 70 | 74 79 20 73 65 6c 65 63 | the emp|ty selec|
|00002a70| 74 69 6f 6e 0d 09 77 65 | 46 41 63 74 69 76 65 09 |tion..we|FActive.|
|00002a80| 09 09 09 3d 09 32 30 2c | 09 09 2f 2f 20 77 65 27 |...=.20,|..// we'|
|00002a90| 72 65 20 61 63 74 69 76 | 65 0d 09 77 65 46 48 69 |re activ|e..weFHi|
|00002aa0| 6c 69 74 65 64 09 09 09 | 09 3d 09 31 39 2c 09 09 |lited...|.=.19,..|
|00002ab0| 2f 2f 20 74 72 75 65 20 | 69 66 20 74 65 78 74 20 |// true |if text |
|00002ac0| 70 61 6e 65 20 69 73 20 | 68 69 67 68 6c 69 67 68 |pane is |highligh|
|00002ad0| 74 65 64 20 28 66 6f 72 | 20 44 72 61 67 20 26 20 |ted (for| Drag & |
|00002ae0| 44 72 6f 70 29 0d 09 77 | 65 46 43 61 6e 41 63 63 |Drop)..w|eFCanAcc|
|00002af0| 65 70 74 44 72 61 67 09 | 09 3d 09 31 38 2c 09 09 |eptDrag.|.=.18,..|
|00002b00| 2f 2f 20 74 68 65 20 64 | 72 61 67 20 69 6e 20 74 |// the d|rag in t|
|00002b10| 68 65 20 74 65 78 74 20 | 70 61 6e 65 20 63 61 6e |he text |pane can|
|00002b20| 20 62 65 20 61 63 63 65 | 70 74 65 64 0d 09 77 65 | be acce|pted..we|
|00002b30| 46 44 72 61 67 43 61 72 | 65 74 56 69 73 69 62 6c |FDragCar|etVisibl|
|00002b40| 65 09 09 3d 09 31 37 2c | 09 09 2f 2f 20 64 72 61 |e..=.17,|..// dra|
|00002b50| 67 20 63 61 72 65 74 20 | 69 73 20 63 75 72 72 65 |g caret |is curre|
|00002b60| 6e 74 6c 79 20 76 69 73 | 69 62 6c 65 0d 09 77 65 |ntly vis|ible..we|
|00002b70| 46 44 65 73 74 52 65 63 | 74 43 68 61 6e 67 65 64 |FDestRec|tChanged|
|00002b80| 09 09 3d 09 31 36 2c 09 | 09 2f 2f 20 73 65 74 20 |..=.16,.|.// set |
|00002b90| 69 66 20 73 63 72 6f 6c | 6c 20 63 61 6c 6c 62 61 |if scrol|l callba|
|00002ba0| 63 6b 20 6e 65 65 64 73 | 20 74 6f 20 62 65 20 63 |ck needs| to be c|
|00002bb0| 61 6c 6c 65 64 0d 09 77 | 65 46 48 61 73 54 72 61 |alled..w|eFHasTra|
|00002bc0| 6e 73 6c 75 63 65 6e 74 | 44 72 61 67 73 09 3d 09 |nslucent|Drags.=.|
|00002bd0| 31 35 2c 09 09 2f 2f 20 | 53 65 74 44 72 61 67 49 |15,..// |SetDragI|
|00002be0| 6d 61 67 65 20 69 73 20 | 61 76 61 69 6c 61 62 6c |mage is |availabl|
|00002bf0| 65 0d 09 77 65 46 41 63 | 63 75 6d 75 6c 61 74 65 |e..weFAc|cumulate|
|00002c00| 55 6e 64 6f 73 09 09 3d | 09 31 34 09 09 2f 2f 20 |Undos..=|.14..// |
|00002c10| 64 6f 6e 27 74 20 63 6c | 65 61 72 20 75 6e 64 6f |don't cl|ear undo|
|00002c20| 20 73 74 61 63 6b 20 62 | 65 66 6f 72 65 20 6e 65 | stack b|efore ne|
|00002c30| 77 20 63 68 61 6e 67 65 | 0d 7d 3b 0d 0d 2f 2f 20 |w change|.};..// |
|00002c40| 73 63 72 61 70 20 74 79 | 70 65 73 0d 65 6e 75 6d |scrap ty|pes.enum|
|00002c50| 0d 7b 0d 09 6b 54 79 70 | 65 54 65 78 74 09 09 09 |.{..kTyp|eText...|
|00002c60| 3d 09 27 54 45 58 54 27 | 2c 0d 09 6b 54 79 70 65 |=.'TEXT'|,..kType|
|00002c70| 53 74 79 6c 65 73 20 09 | 09 3d 09 27 73 74 79 6c |Styles .|.=.'styl|
|00002c80| 27 2c 0d 09 6b 54 79 70 | 65 53 6f 75 70 20 09 09 |',..kTyp|eSoup ..|
|00002c90| 09 3d 09 27 53 4f 55 50 | 27 2c 0d 09 6b 54 79 70 |.=.'SOUP|',..kTyp|
|00002ca0| 65 46 6f 6e 74 54 61 62 | 6c 65 09 09 3d 09 27 46 |eFontTab|le..=.'F|
|00002cb0| 49 53 48 27 0d 7d 3b 0d | 0d 2f 2f 20 73 65 6c 65 |ISH'.};.|.// sele|
|00002cc0| 63 74 6f 72 73 20 66 6f | 72 20 57 45 47 65 74 49 |ctors fo|r WEGetI|
|00002cd0| 6e 66 6f 2f 57 45 53 65 | 74 49 6e 66 6f 0d 65 6e |nfo/WESe|tInfo.en|
|00002ce0| 75 6d 0d 7b 0d 09 77 65 | 4c 69 6e 65 41 72 72 61 |um.{..we|LineArra|
|00002cf0| 79 09 09 09 09 3d 09 27 | 6c 69 6e 65 27 2c 0d 09 |y....=.'|line',..|
|00002d00| 77 65 52 75 6e 41 72 72 | 61 79 09 09 09 09 3d 09 |weRunArr|ay....=.|
|00002d10| 27 72 75 6e 61 27 2c 0d | 09 77 65 53 74 79 6c 65 |'runa',.|.weStyle|
|00002d20| 54 61 62 6c 65 09 09 09 | 3d 09 27 73 74 79 6c 27 |Table...|=.'styl'|
|00002d30| 0d 7d 3b 0d 0d 2f 2f 20 | 70 6f 73 73 69 62 6c 65 |.};..// |possible|
|00002d40| 20 76 61 6c 75 65 73 20 | 72 65 74 75 72 6e 65 64 | values |returned|
|00002d50| 20 62 79 20 57 45 49 6e | 74 65 6c 6c 69 67 65 6e | by WEIn|telligen|
|00002d60| 74 50 61 73 74 65 0d 65 | 6e 75 6d 0d 7b 0d 09 77 |tPaste.e|num.{..w|
|00002d70| 65 44 6f 6e 74 41 64 64 | 53 70 61 63 65 73 09 09 |eDontAdd|Spaces..|
|00002d80| 09 3d 09 20 30 2c 0d 09 | 77 65 41 64 64 53 70 61 |.=. 0,..|weAddSpa|
|00002d90| 63 65 4f 6e 4c 65 66 74 | 53 69 64 65 09 3d 09 2d |ceOnLeft|Side.=.-|
|00002da0| 31 2c 0d 09 77 65 41 64 | 64 53 70 61 63 65 4f 6e |1,..weAd|dSpaceOn|
|00002db0| 52 69 67 68 74 53 69 64 | 65 09 3d 09 20 31 0d 7d |RightSid|e.=. 1.}|
|00002dc0| 3b 0d 0d 2f 2f 20 76 61 | 6c 75 65 73 20 66 6f 72 |;..// va|lues for|
|00002dd0| 20 57 45 41 6c 6c 6f 63 | 61 74 65 20 61 6c 6c 6f | WEAlloc|ate allo|
|00002de0| 63 46 6c 61 67 73 20 70 | 61 72 61 6d 65 74 65 72 |cFlags p|arameter|
|00002df0| 0d 65 6e 75 6d 0d 7b 0d | 09 6b 41 6c 6c 6f 63 43 |.enum.{.|.kAllocC|
|00002e00| 6c 65 61 72 09 09 09 3d | 09 30 78 30 30 30 30 30 |lear...=|.0x00000|
|00002e10| 30 30 31 2c 09 2f 2f 20 | 63 6c 65 61 72 20 68 61 |001,.// |clear ha|
|00002e20| 6e 64 6c 65 20 61 66 74 | 65 72 20 61 6c 6c 6f 63 |ndle aft|er alloc|
|00002e30| 61 74 69 6f 6e 0d 09 6b | 41 6c 6c 6f 63 54 65 6d |ation..k|AllocTem|
|00002e40| 70 09 09 09 3d 09 30 78 | 30 30 30 30 30 30 30 32 |p...=.0x|00000002|
|00002e50| 09 2f 2f 20 75 73 65 20 | 74 65 6d 70 6f 72 61 72 |.// use |temporar|
|00002e60| 79 20 6d 65 6d 6f 72 79 | 20 69 66 20 61 76 61 69 |y memory| if avai|
|00002e70| 6c 61 62 6c 65 0d 7d 3b | 0d 0d 2f 2f 20 6f 74 68 |lable.};|..// oth|
|00002e80| 65 72 20 6d 69 73 63 65 | 6c 6c 61 6e 65 6f 75 73 |er misce|llaneous|
|00002e90| 20 63 6f 6e 73 74 61 6e | 74 73 0d 65 6e 75 6d 0d | constan|ts.enum.|
|00002ea0| 7b 0d 09 6b 43 61 72 65 | 74 57 69 64 74 68 20 3d |{..kCare|tWidth =|
|00002eb0| 20 31 2c 09 09 09 2f 2f | 20 77 69 64 74 68 20 6f | 1,...//| width o|
|00002ec0| 66 20 74 68 65 20 63 61 | 72 65 74 2c 20 69 6e 20 |f the ca|ret, in |
|00002ed0| 70 69 78 65 6c 73 0d 09 | 6b 4d 69 6e 46 6f 6e 74 |pixels..|kMinFont|
|00002ee0| 53 69 7a 65 20 3d 20 31 | 2c 09 09 09 2f 2f 20 6d |Size = 1|,...// m|
|00002ef0| 69 6e 69 6d 75 6d 20 76 | 61 6c 69 64 20 66 6f 6e |inimum v|alid fon|
|00002f00| 74 20 73 69 7a 65 0d 09 | 6b 4d 61 78 46 6f 6e 74 |t size..|kMaxFont|
|00002f10| 53 69 7a 65 20 3d 20 53 | 48 52 54 5f 4d 41 58 2c |Size = S|HRT_MAX,|
|00002f20| 09 2f 2f 20 6d 61 78 69 | 6d 75 6d 20 76 61 6c 69 |.// maxi|mum vali|
|00002f30| 64 20 66 6f 6e 74 20 73 | 69 7a 65 0d 09 6b 49 6e |d font s|ize..kIn|
|00002f40| 76 61 6c 69 64 4f 66 66 | 73 65 74 20 3d 20 2d 31 |validOff|set = -1|
|00002f50| 2c 20 09 09 2f 2f 20 75 | 73 65 64 20 74 6f 20 66 |, ..// u|sed to f|
|00002f60| 6c 61 67 20 61 6e 20 69 | 6e 76 61 6c 69 64 20 6f |lag an i|nvalid o|
|00002f70| 72 20 6e 6f 6e 65 78 69 | 73 74 65 6e 74 20 6f 66 |r nonexi|stent of|
|00002f80| 66 73 65 74 0d 09 6b 55 | 6e 6b 6e 6f 77 6e 4f 62 |fset..kU|nknownOb|
|00002f90| 6a 65 63 74 54 79 70 65 | 20 3d 20 2d 31 2c 09 2f |jectType| = -1,./|
|00002fa0| 2f 20 72 65 74 75 72 6e | 65 64 20 62 79 20 5f 57 |/ return|ed by _W|
|00002fb0| 45 4c 6f 6f 6b 75 70 4f | 62 6a 65 63 74 54 79 70 |ELookupO|bjectTyp|
|00002fc0| 65 20 66 6f 72 20 75 6e | 6b 6e 6f 77 6e 20 66 6c |e for un|known fl|
|00002fd0| 61 76 6f 72 73 0d 09 6b | 54 65 78 74 4d 61 72 67 |avors..k|TextMarg|
|00002fe0| 69 6e 20 3d 20 33 2c 09 | 09 09 2f 2f 20 77 69 64 |in = 3,.|..// wid|
|00002ff0| 74 68 20 6f 66 20 62 6f | 72 64 65 72 20 61 72 65 |th of bo|rder are|
|00003000| 61 20 73 75 72 72 6f 75 | 6e 64 69 6e 67 20 74 68 |a surrou|nding th|
|00003010| 65 20 74 65 78 74 20 28 | 69 6e 20 70 69 78 65 6c |e text (|in pixel|
|00003020| 73 29 0d 09 6b 4d 61 78 | 53 63 72 6f 6c 6c 44 65 |s)..kMax|ScrollDe|
|00003030| 6c 74 61 20 3d 20 33 30 | 2c 09 09 2f 2f 20 6d 61 |lta = 30|,..// ma|
|00003040| 78 69 6d 75 6d 20 73 63 | 72 6f 6c 6c 20 61 6d 6f |ximum sc|roll amo|
|00003050| 75 6e 74 20 75 73 65 64 | 20 62 79 20 73 74 61 6e |unt used| by stan|
|00003060| 64 61 72 64 20 63 6c 69 | 63 6b 20 6c 6f 6f 70 0d |dard cli|ck loop.|
|00003070| 09 6b 41 75 74 6f 53 63 | 72 6f 6c 6c 44 65 6c 61 |.kAutoSc|rollDela|
|00003080| 79 20 3d 20 31 30 2c 09 | 09 2f 2f 20 64 65 6c 61 |y = 10,.|.// dela|
|00003090| 79 20 62 65 66 6f 72 65 | 20 61 75 74 6f 2d 73 63 |y before| auto-sc|
|000030a0| 72 6f 6c 6c 20 73 74 61 | 72 74 73 20 28 69 6e 20 |roll sta|rts (in |
|000030b0| 74 69 63 6b 73 29 0d 09 | 6b 44 65 66 61 75 6c 74 |ticks)..|kDefault|
|000030c0| 4f 62 6a 65 63 74 48 65 | 69 67 68 74 20 3d 20 33 |ObjectHe|ight = 3|
|000030d0| 32 2c 09 2f 2f 20 64 65 | 66 61 75 6c 74 20 68 65 |2,.// de|fault he|
|000030e0| 69 67 68 74 20 66 6f 72 | 20 6e 65 77 20 6f 62 6a |ight for| new obj|
|000030f0| 65 63 74 73 0d 09 6b 44 | 65 66 61 75 6c 74 4f 62 |ects..kD|efaultOb|
|00003100| 6a 65 63 74 57 69 64 74 | 68 20 3d 20 33 32 2c 09 |jectWidt|h = 32,.|
|00003110| 2f 2f 20 64 65 66 61 75 | 6c 74 20 77 69 64 74 68 |// defau|lt width|
|00003120| 20 66 6f 72 20 6e 65 77 | 20 6f 62 6a 65 63 74 73 | for new| objects|
|00003130| 0d 09 6b 41 75 74 6f 4f | 72 64 65 72 69 6e 67 53 |..kAutoO|rderingS|
|00003140| 69 7a 65 20 3d 20 33 32 | 09 09 2f 2f 20 73 69 7a |ize = 32|..// siz|
|00003150| 65 20 6f 66 20 73 74 61 | 63 6b 2d 62 61 73 65 64 |e of sta|ck-based|
|00003160| 20 66 6f 72 6d 61 74 20 | 61 72 72 61 79 20 75 73 | format |array us|
|00003170| 65 64 20 62 79 20 5f 57 | 45 53 65 67 6d 65 6e 74 |ed by _W|ESegment|
|00003180| 4c 6f 6f 70 0d 7d 3b 0d | 0d 23 69 66 20 50 52 41 |Loop.};.|.#if PRA|
|00003190| 47 4d 41 5f 53 54 52 55 | 43 54 5f 41 4c 49 47 4e |GMA_STRU|CT_ALIGN|
|000031a0| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|000031b0| 20 61 6c 69 67 6e 3d 6d | 61 63 36 38 6b 0d 23 65 | align=m|ac68k.#e|
|000031c0| 6e 64 69 66 0d 0d 74 79 | 70 65 64 65 66 20 55 49 |ndif..ty|pedef UI|
|000031d0| 6e 74 31 36 20 57 45 41 | 63 74 69 6f 6e 46 6c 61 |nt16 WEA|ctionFla|
|000031e0| 67 73 3b 0d 0d 2f 2f 20 | 66 6f 72 77 61 72 64 20 |gs;..// |forward |
|000031f0| 64 65 63 6c 61 72 61 74 | 69 6f 6e 73 0d 0d 74 79 |declarat|ions..ty|
|00003200| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 57 45 52 |pedef st|ruct WER|
|00003210| 65 63 20 2a 57 45 50 74 | 72 2c 20 2a 2a 57 45 48 |ec *WEPt|r, **WEH|
|00003220| 61 6e 64 6c 65 3b 0d 74 | 79 70 65 64 65 66 20 73 |andle;.t|ypedef s|
|00003230| 74 72 75 63 74 20 57 45 | 4f 62 6a 65 63 74 44 65 |truct WE|ObjectDe|
|00003240| 73 63 20 2a 2a 57 45 4f | 62 6a 65 63 74 44 65 73 |sc **WEO|bjectDes|
|00003250| 63 48 61 6e 64 6c 65 3b | 0d 0d 2f 2f 20 46 6f 72 |cHandle;|..// For|
|00003260| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|00003270| 69 74 68 20 57 41 53 54 | 45 2e 68 0d 2f 2f 74 79 |ith WAST|E.h.//ty|
|00003280| 70 65 64 65 66 20 57 45 | 48 61 6e 64 6c 65 20 57 |pedef WE|Handle W|
|00003290| 45 52 65 66 65 72 65 6e | 63 65 3b 0d 0d 74 79 70 |EReferen|ce;..typ|
|000032a0| 65 64 65 66 20 73 74 72 | 75 63 74 20 57 45 54 65 |edef str|uct WETe|
|000032b0| 78 74 53 74 79 6c 65 0d | 7b 0d 09 53 49 6e 74 31 |xtStyle.|{..SInt1|
|000032c0| 36 20 74 73 46 6f 6e 74 | 3b 09 09 09 09 09 2f 2f |6 tsFont|;.....//|
|000032d0| 20 66 6f 6e 74 20 66 61 | 6d 69 6c 79 20 6e 75 6d | font fa|mily num|
|000032e0| 62 65 72 0d 09 53 74 79 | 6c 65 20 74 73 46 61 63 |ber..Sty|le tsFac|
|000032f0| 65 3b 09 09 09 09 09 2f | 2f 20 73 65 74 20 6f 66 |e;...../|/ set of|
|00003300| 20 51 75 69 63 6b 64 72 | 61 77 20 73 74 79 6c 65 | Quickdr|aw style|
|00003310| 73 0d 09 55 49 6e 74 38 | 20 74 73 46 6c 61 67 73 |s..UInt8| tsFlags|
|00003320| 3b 09 09 09 09 09 2f 2f | 20 66 6c 61 67 73 20 28 |;.....//| flags (|
|00003330| 46 4f 52 20 49 4e 54 45 | 52 4e 41 4c 20 55 53 45 |FOR INTE|RNAL USE|
|00003340| 20 4f 4e 4c 59 29 0d 09 | 53 49 6e 74 31 36 20 74 | ONLY)..|SInt16 t|
|00003350| 73 53 69 7a 65 3b 09 09 | 09 09 09 2f 2f 20 66 6f |sSize;..|...// fo|
|00003360| 6e 74 20 73 69 7a 65 2c | 20 69 6e 20 69 6e 74 65 |nt size,| in inte|
|00003370| 67 65 72 20 70 6f 69 6e | 74 73 0d 09 52 47 42 43 |ger poin|ts..RGBC|
|00003380| 6f 6c 6f 72 20 74 73 43 | 6f 6c 6f 72 3b 09 09 09 |olor tsC|olor;...|
|00003390| 09 2f 2f 20 61 62 73 6f | 6c 75 74 65 20 72 65 64 |.// abso|lute red|
|000033a0| 2d 67 72 65 65 6e 2d 62 | 6c 75 65 20 63 6f 6c 6f |-green-b|lue colo|
|000033b0| 72 0d 09 57 45 53 74 79 | 6c 65 72 52 65 66 65 72 |r..WESty|lerRefer|
|000033c0| 65 6e 63 65 20 74 73 53 | 74 79 6c 65 72 3b 09 09 |ence tsS|tyler;..|
|000033d0| 2f 2f 20 65 6d 62 65 64 | 64 65 64 20 73 74 79 6c |// embed|ded styl|
|000033e0| 65 72 20 72 65 66 65 72 | 65 6e 63 65 0d 23 69 66 |er refer|ence.#if|
|000033f0| 20 57 41 53 54 45 5f 4f | 42 4a 45 43 54 53 0d 09 | WASTE_O|BJECTS..|
|00003400| 57 45 4f 62 6a 65 63 74 | 44 65 73 63 48 61 6e 64 |WEObject|DescHand|
|00003410| 6c 65 20 74 73 4f 62 6a | 65 63 74 3b 09 2f 2f 20 |le tsObj|ect;.// |
|00003420| 65 6d 62 65 64 64 65 64 | 20 6f 62 6a 65 63 74 20 |embedded| object |
|00003430| 72 65 66 65 72 65 6e 63 | 65 0d 23 65 6e 64 69 66 |referenc|e.#endif|
|00003440| 0d 7d 20 57 45 54 65 78 | 74 53 74 79 6c 65 3b 0d |.} WETex|tStyle;.|
|00003450| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00003460| 57 45 52 75 6e 41 74 74 | 72 69 62 75 74 65 73 0d |WERunAtt|ributes.|
|00003470| 7b 0d 09 53 49 6e 74 31 | 36 20 72 75 6e 48 65 69 |{..SInt1|6 runHei|
|00003480| 67 68 74 3b 09 09 09 2f | 2f 20 73 74 79 6c 65 20 |ght;.../|/ style |
|00003490| 72 75 6e 20 68 65 69 67 | 68 74 20 28 61 73 63 65 |run heig|ht (asce|
|000034a0| 6e 74 20 2b 20 64 65 73 | 63 65 6e 74 20 2b 20 6c |nt + des|cent + l|
|000034b0| 65 61 64 69 6e 67 29 0d | 09 53 49 6e 74 31 36 20 |eading).|.SInt16 |
|000034c0| 72 75 6e 41 73 63 65 6e | 74 3b 09 09 09 2f 2f 20 |runAscen|t;...// |
|000034d0| 66 6f 6e 74 20 61 73 63 | 65 6e 74 0d 09 57 45 54 |font asc|ent..WET|
|000034e0| 65 78 74 53 74 79 6c 65 | 20 72 75 6e 53 74 79 6c |extStyle| runStyl|
|000034f0| 65 3b 09 09 2f 2f 20 74 | 65 78 74 20 73 74 79 6c |e;..// t|ext styl|
|00003500| 65 0d 7d 20 57 45 52 75 | 6e 41 74 74 72 69 62 75 |e.} WERu|nAttribu|
|00003510| 74 65 73 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 74 |tes;..ty|pedef st|
|00003520| 72 75 63 74 20 57 45 52 | 75 6e 49 6e 66 6f 50 72 |ruct WER|unInfoPr|
|00003530| 69 76 0d 7b 0d 09 53 49 | 6e 74 33 32 20 72 75 6e |iv.{..SI|nt32 run|
|00003540| 53 74 61 72 74 3b 09 09 | 09 2f 2f 20 62 79 74 65 |Start;..|.// byte|
|00003550| 20 6f 66 66 73 65 74 20 | 74 6f 20 66 69 72 73 74 | offset |to first|
|00003560| 20 63 68 61 72 61 63 74 | 65 72 20 6f 66 20 74 68 | charact|er of th|
|00003570| 69 73 20 73 74 79 6c 65 | 20 72 75 6e 0d 09 53 49 |is style| run..SI|
|00003580| 6e 74 33 32 20 72 75 6e | 45 6e 64 3b 09 09 09 09 |nt32 run|End;....|
|00003590| 2f 2f 20 62 79 74 65 20 | 6f 66 66 73 65 74 20 74 |// byte |offset t|
|000035a0| 6f 20 66 69 72 73 74 20 | 63 68 61 72 61 63 74 65 |o first |characte|
|000035b0| 72 20 6f 66 20 6e 65 78 | 74 20 73 74 79 6c 65 20 |r of nex|t style |
|000035c0| 72 75 6e 0d 09 57 45 52 | 75 6e 41 74 74 72 69 62 |run..WER|unAttrib|
|000035d0| 75 74 65 73 20 72 75 6e | 41 74 74 72 73 3b 09 2f |utes run|Attrs;./|
|000035e0| 2f 20 72 75 6e 20 61 74 | 74 72 69 62 75 74 65 73 |/ run at|tributes|
|000035f0| 0d 7d 20 57 45 52 75 6e | 49 6e 66 6f 50 72 69 76 |.} WERun|InfoPriv|
|00003600| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|00003610| 74 20 51 44 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 0d |t QDEnvi|ronment.|
|00003620| 7b 0d 09 47 72 61 66 50 | 74 72 20 65 6e 76 50 6f |{..GrafP|tr envPo|
|00003630| 72 74 3b 0d 09 50 65 6e | 53 74 61 74 65 20 65 6e |rt;..Pen|State en|
|00003640| 76 50 65 6e 3b 0d 09 57 | 45 54 65 78 74 53 74 79 |vPen;..W|ETextSty|
|00003650| 6c 65 20 65 6e 76 53 74 | 79 6c 65 3b 0d 09 53 49 |le envSt|yle;..SI|
|00003660| 6e 74 31 36 20 65 6e 76 | 4d 6f 64 65 3b 0d 7d 20 |nt16 env|Mode;.} |
|00003670| 51 44 45 6e 76 69 72 6f | 6e 6d 65 6e 74 3b 0d 0d |QDEnviro|nment;..|
|00003680| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 57 |typedef |struct W|
|00003690| 45 52 75 6e 41 72 72 61 | 79 45 6e 74 72 79 0d 7b |ERunArra|yEntry.{|
|000036a0| 0d 09 53 49 6e 74 33 32 | 20 72 75 6e 53 74 61 72 |..SInt32| runStar|
|000036b0| 74 3b 09 09 09 2f 2f 20 | 6f 66 66 73 65 74 20 74 |t;...// |offset t|
|000036c0| 6f 20 66 69 72 73 74 20 | 63 68 61 72 61 63 74 65 |o first |characte|
|000036d0| 72 20 69 6e 20 73 74 79 | 6c 65 20 72 75 6e 0d 09 |r in sty|le run..|
|000036e0| 53 49 6e 74 33 32 20 73 | 74 79 6c 65 49 6e 64 65 |SInt32 s|tyleInde|
|000036f0| 78 3b 09 09 09 2f 2f 20 | 69 6e 64 65 78 20 69 6e |x;...// |index in|
|00003700| 74 6f 20 73 74 79 6c 65 | 20 74 61 62 6c 65 0d 7d |to style| table.}|
|00003710| 20 57 45 52 75 6e 41 72 | 72 61 79 45 6e 74 72 79 | WERunAr|rayEntry|
|00003720| 2c 20 2a 2a 57 45 52 75 | 6e 41 72 72 61 79 48 61 |, **WERu|nArrayHa|
|00003730| 6e 64 6c 65 3b 0d 0d 74 | 79 70 65 64 65 66 20 73 |ndle;..t|ypedef s|
|00003740| 74 72 75 63 74 20 54 45 | 52 75 6e 41 74 74 72 69 |truct TE|RunAttri|
|00003750| 62 75 74 65 73 0d 7b 0d | 09 53 49 6e 74 31 36 20 |butes.{.|.SInt16 |
|00003760| 72 75 6e 48 65 69 67 68 | 74 3b 0d 09 53 49 6e 74 |runHeigh|t;..SInt|
|00003770| 31 36 20 72 75 6e 41 73 | 63 65 6e 74 3b 0d 09 54 |16 runAs|cent;..T|
|00003780| 65 78 74 53 74 79 6c 65 | 20 72 75 6e 54 45 53 74 |extStyle| runTESt|
|00003790| 79 6c 65 3b 0d 7d 20 54 | 45 52 75 6e 41 74 74 72 |yle;.} T|ERunAttr|
|000037a0| 69 62 75 74 65 73 3b 0d | 0d 74 79 70 65 64 65 66 |ibutes;.|.typedef|
|000037b0| 20 73 74 72 75 63 74 20 | 54 45 53 74 79 6c 65 53 | struct |TEStyleS|
|000037c0| 63 72 61 70 45 6c 65 6d | 65 6e 74 0d 7b 0d 09 53 |crapElem|ent.{..S|
|000037d0| 49 6e 74 33 32 20 73 63 | 72 70 53 74 61 72 74 43 |Int32 sc|rpStartC|
|000037e0| 68 61 72 3b 0d 09 54 45 | 52 75 6e 41 74 74 72 69 |har;..TE|RunAttri|
|000037f0| 62 75 74 65 73 20 73 63 | 72 70 54 45 41 74 74 72 |butes sc|rpTEAttr|
|00003800| 73 3b 0d 7d 20 54 45 53 | 74 79 6c 65 53 63 72 61 |s;.} TES|tyleScra|
|00003810| 70 45 6c 65 6d 65 6e 74 | 3b 0d 0d 74 79 70 65 64 |pElement|;..typed|
|00003820| 65 66 20 73 74 72 75 63 | 74 20 54 45 53 74 79 6c |ef struc|t TEStyl|
|00003830| 65 53 63 72 61 70 0d 7b | 0d 09 53 49 6e 74 31 36 |eScrap.{|..SInt16|
|00003840| 20 73 63 72 70 4e 53 74 | 79 6c 65 73 3b 0d 09 54 | scrpNSt|yles;..T|
|00003850| 45 53 74 79 6c 65 53 63 | 72 61 70 45 6c 65 6d 65 |EStyleSc|rapEleme|
|00003860| 6e 74 20 73 63 72 70 53 | 74 79 6c 65 54 61 62 5b |nt scrpS|tyleTab[|
|00003870| 20 6b 56 61 72 69 61 62 | 6c 65 4c 65 6e 67 74 68 | kVariab|leLength|
|00003880| 41 72 72 61 79 20 5d 3b | 0d 7d 20 54 45 53 74 79 |Array ];|.} TESty|
|00003890| 6c 65 53 63 72 61 70 2c | 20 2a 2a 54 45 53 74 79 |leScrap,| **TESty|
|000038a0| 6c 65 53 63 72 61 70 48 | 61 6e 64 6c 65 3b 0d 0d |leScrapH|andle;..|
|000038b0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 57 |typedef |struct W|
|000038c0| 45 53 74 79 6c 65 54 61 | 62 6c 65 45 6e 74 72 79 |EStyleTa|bleEntry|
|000038d0| 0d 7b 0d 09 53 49 6e 74 | 33 32 20 72 65 66 43 6f |.{..SInt|32 refCo|
|000038e0| 75 6e 74 3b 09 09 09 2f | 2f 20 72 65 66 65 72 65 |unt;.../|/ refere|
|000038f0| 6e 63 65 20 63 6f 75 6e | 74 0d 09 57 45 52 75 6e |nce coun|t..WERun|
|00003900| 41 74 74 72 69 62 75 74 | 65 73 20 69 6e 66 6f 3b |Attribut|es info;|
|00003910| 09 09 2f 2f 20 73 74 79 | 6c 65 20 69 6e 66 6f 72 |..// sty|le infor|
|00003920| 6d 61 74 69 6f 6e 0d 7d | 20 57 45 53 74 79 6c 65 |mation.}| WEStyle|
|00003930| 54 61 62 6c 65 45 6e 74 | 72 79 2c 20 2a 2a 57 45 |TableEnt|ry, **WE|
|00003940| 53 74 79 6c 65 54 61 62 | 6c 65 48 61 6e 64 6c 65 |StyleTab|leHandle|
|00003950| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|00003960| 74 20 57 45 4c 69 6e 65 | 52 65 63 0d 7b 0d 09 53 |t WELine|Rec.{..S|
|00003970| 49 6e 74 33 32 20 6c 69 | 6e 65 53 74 61 72 74 3b |Int32 li|neStart;|
|00003980| 09 09 09 2f 2f 20 62 79 | 74 65 20 6f 66 66 73 65 |...// by|te offse|
|00003990| 74 20 74 6f 20 66 69 72 | 73 74 20 63 68 61 72 61 |t to fir|st chara|
|000039a0| 63 74 65 72 20 69 6e 20 | 6c 69 6e 65 0d 09 53 49 |cter in |line..SI|
|000039b0| 6e 74 33 32 20 6c 69 6e | 65 4f 72 69 67 69 6e 3b |nt32 lin|eOrigin;|
|000039c0| 09 09 09 2f 2f 20 70 69 | 78 65 6c 20 6f 66 66 73 |...// pi|xel offs|
|000039d0| 65 74 20 66 72 6f 6d 20 | 64 65 73 74 52 65 63 74 |et from |destRect|
|000039e0| 2e 74 6f 70 0d 09 53 49 | 6e 74 31 36 20 6c 69 6e |.top..SI|nt16 lin|
|000039f0| 65 41 73 63 65 6e 74 3b | 09 09 09 2f 2f 20 6d 61 |eAscent;|...// ma|
|00003a00| 78 69 6d 75 6d 20 66 6f | 6e 74 20 61 73 63 65 6e |ximum fo|nt ascen|
|00003a10| 74 20 66 6f 72 20 74 68 | 69 73 20 6c 69 6e 65 0d |t for th|is line.|
|00003a20| 09 53 49 6e 74 31 36 20 | 6c 69 6e 65 53 6c 6f 70 |.SInt16 |lineSlop|
|00003a30| 3b 09 09 09 2f 2f 20 65 | 78 74 72 61 20 70 69 78 |;...// e|xtra pix|
|00003a40| 65 6c 73 20 6e 65 65 64 | 65 64 20 74 6f 20 66 69 |els need|ed to fi|
|00003a50| 6c 6c 20 75 70 20 74 68 | 65 20 6c 69 6e 65 0d 09 |ll up th|e line..|
|00003a60| 46 69 78 65 64 20 6c 69 | 6e 65 4a 75 73 74 41 6d |Fixed li|neJustAm|
|00003a70| 6f 75 6e 74 3b 09 09 2f | 2f 20 6e 6f 72 6d 61 6c |ount;../|/ normal|
|00003a80| 69 7a 65 64 20 73 6c 6f | 70 20 76 61 6c 75 65 2c |ized slo|p value,|
|00003a90| 20 75 73 65 64 20 66 6f | 72 20 6a 75 73 74 69 66 | used fo|r justif|
|00003aa0| 69 63 61 74 69 6f 6e 0d | 7d 20 57 45 4c 69 6e 65 |ication.|} WELine|
|00003ab0| 52 65 63 2c 20 2a 2a 57 | 45 4c 69 6e 65 41 72 72 |Rec, **W|ELineArr|
|00003ac0| 61 79 48 61 6e 64 6c 65 | 3b 0d 0d 74 79 70 65 64 |ayHandle|;..typed|
|00003ad0| 65 66 20 73 74 72 75 63 | 74 20 57 45 41 63 74 69 |ef struc|t WEActi|
|00003ae0| 6f 6e 0d 7b 0d 09 57 45 | 48 61 6e 64 6c 65 20 68 |on.{..WE|Handle h|
|00003af0| 4f 77 6e 65 72 3b 09 09 | 09 2f 2f 20 68 61 6e 64 |Owner;..|.// hand|
|00003b00| 6c 65 20 74 6f 20 61 73 | 73 6f 63 69 61 74 65 64 |le to as|sociated|
|00003b10| 20 57 45 20 69 6e 73 74 | 61 6e 63 65 0d 09 73 74 | WE inst|ance..st|
|00003b20| 72 75 63 74 20 57 45 41 | 63 74 69 6f 6e 20 2a 2a |ruct WEA|ction **|
|00003b30| 68 4e 65 78 74 3b 09 2f | 2f 20 75 73 65 64 20 74 |hNext;./|/ used t|
|00003b40| 6f 20 6b 65 65 70 20 61 | 20 6c 69 6e 6b 65 64 20 |o keep a| linked |
|00003b50| 6c 69 73 74 20 6f 66 20 | 61 63 74 69 6f 6e 73 0d |list of |actions.|
|00003b60| 09 48 61 6e 64 6c 65 20 | 68 54 65 78 74 3b 09 09 |.Handle |hText;..|
|00003b70| 09 09 2f 2f 20 68 61 6e | 64 6c 65 20 74 6f 20 73 |..// han|dle to s|
|00003b80| 61 76 65 64 20 74 65 78 | 74 0d 09 53 74 53 63 72 |aved tex|t..StScr|
|00003b90| 70 48 61 6e 64 6c 65 20 | 68 53 74 79 6c 65 73 3b |pHandle |hStyles;|
|00003ba0| 09 09 2f 2f 20 68 61 6e | 64 6c 65 20 74 6f 20 73 |..// han|dle to s|
|00003bb0| 61 76 65 64 20 73 74 79 | 6c 65 73 0d 09 57 45 53 |aved sty|les..WES|
|00003bc0| 6f 75 70 48 61 6e 64 6c | 65 20 68 53 6f 75 70 3b |oupHandl|e hSoup;|
|00003bd0| 09 09 09 2f 2f 20 68 61 | 6e 64 6c 65 20 74 6f 20 |...// ha|ndle to |
|00003be0| 73 61 76 65 64 20 73 6f | 75 70 0d 09 53 49 6e 74 |saved so|up..SInt|
|00003bf0| 33 32 20 64 65 6c 52 61 | 6e 67 65 53 74 61 72 74 |32 delRa|ngeStart|
|00003c00| 3b 09 09 2f 2f 20 73 74 | 61 72 74 20 6f 66 20 72 |;..// st|art of r|
|00003c10| 61 6e 67 65 20 74 6f 20 | 64 65 6c 65 74 65 0d 09 |ange to |delete..|
|00003c20| 53 49 6e 74 33 32 20 64 | 65 6c 52 61 6e 67 65 4c |SInt32 d|elRangeL|
|00003c30| 65 6e 67 74 68 3b 09 09 | 2f 2f 20 6c 65 6e 67 74 |ength;..|// lengt|
|00003c40| 68 20 6f 66 20 72 61 6e | 67 65 20 74 6f 20 64 65 |h of ran|ge to de|
|00003c50| 6c 65 74 65 0d 09 53 49 | 6e 74 33 32 20 69 6e 73 |lete..SI|nt32 ins|
|00003c60| 52 61 6e 67 65 4c 65 6e | 67 74 68 3b 09 09 2f 2f |RangeLen|gth;..//|
|00003c70| 20 6c 65 6e 66 74 68 20 | 6f 66 20 72 61 6e 67 65 | lenfth |of range|
|00003c80| 20 74 6f 20 69 6e 73 65 | 72 74 0d 09 53 49 6e 74 | to inse|rt..SInt|
|00003c90| 33 32 20 68 69 6c 69 74 | 65 53 74 61 72 74 3b 09 |32 hilit|eStart;.|
|00003ca0| 09 09 2f 2f 20 73 74 61 | 72 74 20 6f 66 20 72 61 |..// sta|rt of ra|
|00003cb0| 6e 67 65 20 74 6f 20 68 | 69 6c 69 74 65 0d 09 53 |nge to h|ilite..S|
|00003cc0| 49 6e 74 33 32 20 68 69 | 6c 69 74 65 45 6e 64 3b |Int32 hi|liteEnd;|
|00003cd0| 09 09 09 2f 2f 20 65 6e | 64 20 6f 66 20 72 61 6e |...// en|d of ran|
|00003ce0| 67 65 20 74 6f 20 68 69 | 6c 69 74 65 0d 09 57 45 |ge to hi|lite..WE|
|00003cf0| 41 63 74 69 6f 6e 4b 69 | 6e 64 20 61 63 74 69 6f |ActionKi|nd actio|
|00003d00| 6e 4b 69 6e 64 3b 09 2f | 2f 20 69 64 65 6e 74 69 |nKind;./|/ identi|
|00003d10| 66 69 65 73 20 65 76 65 | 6e 74 20 74 68 61 74 20 |fies eve|nt that |
|00003d20| 63 61 75 73 65 64 20 74 | 68 69 73 20 61 63 74 69 |caused t|his acti|
|00003d30| 6f 6e 20 74 6f 20 62 65 | 20 70 75 73 68 65 64 0d |on to be| pushed.|
|00003d40| 09 57 45 41 63 74 69 6f | 6e 46 6c 61 67 73 20 61 |.WEActio|nFlags a|
|00003d50| 63 74 69 6f 6e 46 6c 61 | 67 73 3b 09 2f 2f 20 6d |ctionFla|gs;.// m|
|00003d60| 69 73 63 65 6c 6c 61 6e | 65 6f 75 73 20 66 6c 61 |iscellan|eous fla|
|00003d70| 67 73 0d 7d 20 57 45 41 | 63 74 69 6f 6e 2c 20 2a |gs.} WEA|ction, *|
|00003d80| 2a 57 45 41 63 74 69 6f | 6e 48 61 6e 64 6c 65 3b |*WEActio|nHandle;|
|00003d90| 0d 0d 2f 2f 20 41 20 57 | 45 53 6f 75 70 20 72 65 |..// A W|ESoup re|
|00003da0| 63 6f 72 64 20 69 73 20 | 61 20 73 74 61 74 69 63 |cord is |a static|
|00003db0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00003dc0| 61 6e 20 6f 62 6a 65 63 | 74 20 65 6d 62 65 64 64 |an objec|t embedd|
|00003dd0| 65 64 20 69 6e 20 74 68 | 65 20 74 65 78 74 2e 0d |ed in th|e text..|
|00003de0| 2f 2f 20 54 68 65 20 27 | 53 4f 55 50 27 20 64 61 |// The '|SOUP' da|
|00003df0| 74 61 20 74 79 70 65 20 | 69 73 20 6a 75 73 74 20 |ta type |is just |
|00003e00| 61 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |a collec|tion of |
|00003e10| 57 45 53 6f 75 70 20 72 | 65 63 6f 72 64 73 2c 20 |WESoup r|ecords, |
|00003e20| 65 61 63 68 20 66 6f 6c | 6c 6f 77 65 64 0d 2f 2f |each fol|lowed.//|
|00003e30| 20 62 79 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f | by the |correspo|
|00003e40| 6e 64 69 6e 67 20 6f 62 | 6a 65 63 74 20 64 61 74 |nding ob|ject dat|
|00003e50| 61 2e 0d 2f 2f 20 54 68 | 69 73 20 64 61 74 61 20 |a..// Th|is data |
|00003e60| 74 79 70 65 20 63 6f 6d | 70 6c 65 6d 65 6e 74 73 |type com|plements|
|00003e70| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 54 45 | the sta|ndard TE|
|00003e80| 58 54 2f 73 74 79 6c 20 | 70 61 69 72 2e 0d 0d 74 |XT/styl |pair...t|
|00003e90| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 57 45 |ypedef s|truct WE|
|00003ea0| 53 6f 75 70 0d 7b 0d 09 | 53 49 6e 74 33 32 20 73 |Soup.{..|SInt32 s|
|00003eb0| 6f 75 70 4f 66 66 73 65 | 74 3b 09 09 09 2f 2f 20 |oupOffse|t;...// |
|00003ec0| 69 6e 73 65 72 74 69 6f | 6e 20 6f 66 66 73 65 74 |insertio|n offset|
|00003ed0| 20 66 6f 72 20 74 68 69 | 73 20 6f 62 6a 65 63 74 | for thi|s object|
|00003ee0| 0d 09 46 6c 61 76 6f 72 | 54 79 70 65 20 73 6f 75 |..Flavor|Type sou|
|00003ef0| 70 54 79 70 65 3b 09 09 | 2f 2f 20 34 2d 6c 65 74 |pType;..|// 4-let|
|00003f00| 74 65 72 20 74 61 67 20 | 69 64 65 6e 74 69 66 79 |ter tag |identify|
|00003f10| 69 6e 67 20 6f 62 6a 65 | 63 74 20 74 79 70 65 0d |ing obje|ct type.|
|00003f20| 09 53 49 6e 74 33 32 20 | 73 6f 75 70 52 65 73 65 |.SInt32 |soupRese|
|00003f30| 72 76 65 64 31 3b 09 09 | 2f 2f 20 72 65 73 65 72 |rved1;..|// reser|
|00003f40| 76 65 64 20 66 6f 72 20 | 66 75 74 75 72 65 20 75 |ved for |future u|
|00003f50| 73 65 3b 20 73 65 74 20 | 74 6f 20 7a 65 72 6f 0d |se; set |to zero.|
|00003f60| 09 53 69 7a 65 20 73 6f | 75 70 44 61 74 61 53 69 |.Size so|upDataSi|
|00003f70| 7a 65 3b 09 09 09 2f 2f | 20 73 69 7a 65 20 6f 66 |ze;...//| size of|
|00003f80| 20 6f 62 6a 65 63 74 20 | 64 61 74 61 20 66 6f 6c | object |data fol|
|00003f90| 6c 6f 77 69 6e 67 20 74 | 68 69 73 20 72 65 63 6f |lowing t|his reco|
|00003fa0| 72 64 0d 09 50 6f 69 6e | 74 20 73 6f 75 70 53 69 |rd..Poin|t soupSi|
|00003fb0| 7a 65 3b 09 09 09 09 2f | 2f 20 6f 62 6a 65 63 74 |ze;..../|/ object|
|00003fc0| 20 68 65 69 67 68 74 20 | 61 6e 64 20 77 69 64 74 | height |and widt|
|00003fd0| 68 2c 20 69 6e 20 70 69 | 78 65 6c 73 0d 09 53 49 |h, in pi|xels..SI|
|00003fe0| 6e 74 33 32 20 73 6f 75 | 70 52 65 73 65 72 76 65 |nt32 sou|pReserve|
|00003ff0| 64 32 3b 09 09 2f 2f 20 | 72 65 73 65 72 76 65 64 |d2;..// |reserved|
|00004000| 20 66 6f 72 20 66 75 74 | 75 72 65 20 75 73 65 3b | for fut|ure use;|
|00004010| 20 73 65 74 20 74 6f 20 | 7a 65 72 6f 0d 7d 20 57 | set to |zero.} W|
|00004020| 45 53 6f 75 70 3b 0d 0d | 0d 74 79 70 65 64 65 66 |ESoup;..|.typedef|
|00004030| 20 42 6f 6f 6c 65 61 6e | 20 28 2a 57 45 53 65 67 | Boolean| (*WESeg|
|00004040| 6d 65 6e 74 4c 6f 6f 70 | 50 72 6f 63 50 74 72 29 |mentLoop|ProcPtr)|
|00004050| 0d 09 28 0d 09 09 57 45 | 4c 69 6e 65 52 65 63 20 |..(...WE|LineRec |
|00004060| 2a 70 4c 69 6e 65 2c 0d | 09 09 63 6f 6e 73 74 20 |*pLine,.|..const |
|00004070| 57 45 52 75 6e 41 74 74 | 72 69 62 75 74 65 73 20 |WERunAtt|ributes |
|00004080| 2a 70 41 74 74 72 73 2c | 0d 09 09 50 74 72 20 70 |*pAttrs,|...Ptr p|
|00004090| 53 65 67 6d 65 6e 74 2c | 0d 09 09 53 49 6e 74 33 |Segment,|...SInt3|
|000040a0| 32 20 73 65 67 6d 65 6e | 74 53 74 61 72 74 2c 0d |2 segmen|tStart,.|
|000040b0| 09 09 53 49 6e 74 33 32 | 20 73 65 67 6d 65 6e 74 |..SInt32| segment|
|000040c0| 4c 65 6e 67 74 68 2c 0d | 09 09 4a 75 73 74 53 74 |Length,.|..JustSt|
|000040d0| 79 6c 65 43 6f 64 65 20 | 73 74 79 6c 65 52 75 6e |yleCode |styleRun|
|000040e0| 50 6f 73 69 74 69 6f 6e | 2c 0d 09 09 57 45 48 61 |Position|,...WEHa|
|000040f0| 6e 64 6c 65 20 68 57 45 | 2c 0d 09 09 76 6f 69 64 |ndle hWE|,...void|
|00004100| 20 2a 63 61 6c 6c 62 61 | 63 6b 44 61 74 61 0d 09 | *callba|ckData..|
|00004110| 29 3b 0d 0d 2f 2f 74 79 | 70 65 64 65 66 20 46 6f |);..//ty|pedef Fo|
|00004120| 75 72 43 68 61 72 43 6f | 64 65 20 57 45 53 65 6c |urCharCo|de WESel|
|00004130| 65 63 74 6f 72 3b 0d 0d | 74 79 70 65 64 65 66 20 |ector;..|typedef |
|00004140| 73 74 72 75 63 74 20 57 | 45 46 69 65 6c 64 44 65 |struct W|EFieldDe|
|00004150| 73 63 72 69 70 74 6f 72 | 0d 7b 0d 09 53 49 6e 74 |scriptor|.{..SInt|
|00004160| 31 36 20 66 4f 66 66 73 | 65 74 3b 0d 09 53 49 6e |16 fOffs|et;..SIn|
|00004170| 74 31 36 20 66 4c 65 6e | 67 74 68 3b 0d 7d 20 57 |t16 fLen|gth;.} W|
|00004180| 45 46 69 65 6c 64 44 65 | 73 63 72 69 70 74 6f 72 |EFieldDe|scriptor|
|00004190| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|000041a0| 74 20 57 45 4c 6f 6f 6b | 75 70 54 61 62 6c 65 0d |t WELook|upTable.|
|000041b0| 7b 0d 09 57 45 53 65 6c | 65 63 74 6f 72 20 73 65 |{..WESel|ector se|
|000041c0| 6c 65 63 74 6f 72 3b 0d | 09 57 45 46 69 65 6c 64 |lector;.|.WEField|
|000041d0| 44 65 73 63 72 69 70 74 | 6f 72 20 64 65 73 63 3b |Descript|or desc;|
|000041e0| 0d 7d 20 57 45 4c 6f 6f | 6b 75 70 54 61 62 6c 65 |.} WELoo|kupTable|
|000041f0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|00004200| 74 20 57 45 55 73 65 72 | 49 6e 66 6f 45 6e 74 72 |t WEUser|InfoEntr|
|00004210| 79 0d 7b 0d 09 57 45 53 | 65 6c 65 63 74 6f 72 20 |y.{..WES|elector |
|00004220| 74 61 67 3b 0d 09 53 49 | 6e 74 33 32 20 69 6e 66 |tag;..SI|nt32 inf|
|00004230| 6f 3b 0d 7d 20 57 45 55 | 73 65 72 49 6e 66 6f 45 |o;.} WEU|serInfoE|
|00004240| 6e 74 72 79 3b 0d 0d 74 | 79 70 65 64 65 66 20 73 |ntry;..t|ypedef s|
|00004250| 74 72 75 63 74 20 57 45 | 4f 48 54 61 62 6c 65 45 |truct WE|OHTableE|
|00004260| 6e 74 72 79 0d 7b 0d 09 | 46 6c 61 76 6f 72 54 79 |ntry.{..|FlavorTy|
|00004270| 70 65 20 6f 62 6a 65 63 | 74 54 79 70 65 3b 0d 09 |pe objec|tType;..|
|00004280| 57 45 4e 65 77 4f 62 6a | 65 63 74 55 50 50 20 6e |WENewObj|ectUPP n|
|00004290| 65 77 48 61 6e 64 6c 65 | 72 3b 0d 09 57 45 44 69 |ewHandle|r;..WEDi|
|000042a0| 73 70 6f 73 65 4f 62 6a | 65 63 74 55 50 50 20 66 |sposeObj|ectUPP f|
|000042b0| 72 65 65 48 61 6e 64 6c | 65 72 3b 0d 09 57 45 44 |reeHandl|er;..WED|
|000042c0| 72 61 77 4f 62 6a 65 63 | 74 55 50 50 20 64 72 61 |rawObjec|tUPP dra|
|000042d0| 77 48 61 6e 64 6c 65 72 | 3b 0d 09 57 45 43 6c 69 |wHandler|;..WECli|
|000042e0| 63 6b 4f 62 6a 65 63 74 | 55 50 50 20 63 6c 69 63 |ckObject|UPP clic|
|000042f0| 6b 48 61 6e 64 6c 65 72 | 3b 0d 09 57 45 53 74 72 |kHandler|;..WEStr|
|00004300| 65 61 6d 4f 62 6a 65 63 | 74 55 50 50 20 73 74 72 |eamObjec|tUPP str|
|00004310| 65 61 6d 48 61 6e 64 6c | 65 72 3b 0d 09 53 49 6e |eamHandl|er;..SIn|
|00004320| 74 33 32 20 72 65 66 43 | 6f 6e 3b 0d 7d 20 57 45 |t32 refC|on;.} WE|
|00004330| 4f 48 54 61 62 6c 65 45 | 6e 74 72 79 2c 20 2a 2a |OHTableE|ntry, **|
|00004340| 57 45 4f 48 54 61 62 6c | 65 48 61 6e 64 6c 65 3b |WEOHTabl|eHandle;|
|00004350| 0d 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00004360| 20 57 45 4f 62 6a 65 63 | 74 44 65 73 63 0d 7b 0d | WEObjec|tDesc.{.|
|00004370| 09 46 6c 61 76 6f 72 54 | 79 70 65 20 6f 62 6a 65 |.FlavorT|ype obje|
|00004380| 63 74 54 79 70 65 3b 09 | 09 09 09 2f 2f 20 34 2d |ctType;.|...// 4-|
|00004390| 6c 65 74 74 65 72 20 74 | 61 67 20 69 64 65 6e 74 |letter t|ag ident|
|000043a0| 69 66 79 69 6e 67 20 6f | 62 6a 65 63 74 20 74 79 |ifying o|bject ty|
|000043b0| 70 65 0d 09 48 61 6e 64 | 6c 65 20 6f 62 6a 65 63 |pe..Hand|le objec|
|000043c0| 74 44 61 74 61 48 61 6e | 64 6c 65 3b 09 09 09 2f |tDataHan|dle;.../|
|000043d0| 2f 20 68 61 6e 64 6c 65 | 20 74 6f 20 6f 62 6a 65 |/ handle| to obje|
|000043e0| 63 74 20 64 61 74 61 0d | 09 50 6f 69 6e 74 20 6f |ct data.|.Point o|
|000043f0| 62 6a 65 63 74 53 69 7a | 65 3b 09 09 09 09 09 2f |bjectSiz|e;...../|
|00004400| 2f 20 6f 62 6a 65 63 74 | 20 68 65 69 67 68 74 20 |/ object| height |
|00004410| 61 6e 64 20 77 69 64 74 | 68 2c 20 69 6e 20 70 69 |and widt|h, in pi|
|00004420| 78 65 6c 73 0d 09 57 45 | 4f 48 54 61 62 6c 65 48 |xels..WE|OHTableH|
|00004430| 61 6e 64 6c 65 20 6f 62 | 6a 65 63 74 54 61 62 6c |andle ob|jectTabl|
|00004440| 65 3b 09 09 2f 2f 20 68 | 61 6e 64 6c 65 20 74 6f |e;..// h|andle to|
|00004450| 20 6f 62 6a 65 63 74 20 | 68 61 6e 64 6c 65 72 20 | object |handler |
|00004460| 74 61 62 6c 65 0d 09 53 | 49 6e 74 33 32 20 6f 62 |table..S|Int32 ob|
|00004470| 6a 65 63 74 49 6e 64 65 | 78 3b 09 09 09 09 09 2f |jectInde|x;...../|
|00004480| 2f 20 69 6e 64 65 78 20 | 69 6e 74 6f 20 6f 62 6a |/ index |into obj|
|00004490| 65 63 74 20 68 61 6e 64 | 6c 65 72 20 74 61 62 6c |ect hand|ler tabl|
|000044a0| 65 0d 09 57 45 48 61 6e | 64 6c 65 20 6f 62 6a 65 |e..WEHan|dle obje|
|000044b0| 63 74 4f 77 6e 65 72 3b | 09 09 09 09 2f 2f 20 68 |ctOwner;|....// h|
|000044c0| 61 6e 64 6c 65 20 74 6f | 20 6f 77 6e 65 72 20 57 |andle to| owner W|
|000044d0| 45 20 69 6e 73 74 61 6e | 63 65 0d 09 53 49 6e 74 |E instan|ce..SInt|
|000044e0| 33 32 20 6f 62 6a 65 63 | 74 52 65 66 43 6f 6e 3b |32 objec|tRefCon;|
|000044f0| 09 09 09 09 2f 2f 20 66 | 72 65 65 20 66 6f 72 20 |....// f|ree for |
|00004500| 75 73 65 20 62 79 20 6f | 62 6a 65 63 74 20 68 61 |use by o|bject ha|
|00004510| 6e 64 6c 65 72 73 0d 7d | 20 57 45 4f 62 6a 65 63 |ndlers.}| WEObjec|
|00004520| 74 44 65 73 63 3b 0d 0d | 74 79 70 65 64 65 66 20 |tDesc;..|typedef |
|00004530| 73 74 72 75 63 74 20 57 | 45 53 74 79 6c 65 72 48 |struct W|EStylerH|
|00004540| 61 6e 64 6c 65 72 45 6e | 74 72 79 0d 7b 0d 09 46 |andlerEn|try.{..F|
|00004550| 6c 61 76 6f 72 54 79 70 | 65 20 73 74 79 6c 65 72 |lavorTyp|e styler|
|00004560| 54 79 70 65 3b 0d 09 57 | 45 53 74 79 6c 65 72 4e |Type;..W|EStylerN|
|00004570| 65 77 55 50 50 20 73 74 | 79 6c 65 72 4e 65 77 3b |ewUPP st|ylerNew;|
|00004580| 0d 09 57 45 53 74 79 6c | 65 72 43 6f 6d 70 75 74 |..WEStyl|erComput|
|00004590| 65 55 50 50 20 73 74 79 | 6c 65 72 43 6f 6d 70 75 |eUPP sty|lerCompu|
|000045a0| 74 65 3b 0d 09 57 45 53 | 74 79 6c 65 72 44 72 61 |te;..WES|tylerDra|
|000045b0| 77 55 50 50 20 73 74 79 | 6c 65 72 44 72 61 77 3b |wUPP sty|lerDraw;|
|000045c0| 0d 09 57 45 53 74 79 6c | 65 72 43 6c 69 63 6b 55 |..WEStyl|erClickU|
|000045d0| 50 50 20 73 74 79 6c 65 | 72 43 6c 69 63 6b 3b 0d |PP style|rClick;.|
|000045e0| 09 57 45 53 74 79 6c 65 | 72 53 74 72 65 61 6d 55 |.WEStyle|rStreamU|
|000045f0| 50 50 20 73 74 79 6c 65 | 72 53 74 72 65 61 6d 3b |PP style|rStream;|
|00004600| 0d 09 57 45 53 74 79 6c | 65 72 44 69 73 70 6f 73 |..WEStyl|erDispos|
|00004610| 65 55 50 50 20 73 74 79 | 6c 65 72 44 69 73 70 6f |eUPP sty|lerDispo|
|00004620| 73 65 3b 0d 7d 20 57 45 | 53 74 79 6c 65 72 48 61 |se;.} WE|StylerHa|
|00004630| 6e 64 6c 65 72 45 6e 74 | 72 79 2c 20 2a 2a 57 45 |ndlerEnt|ry, **WE|
|00004640| 53 74 79 6c 65 72 48 61 | 6e 64 6c 65 72 54 61 62 |StylerHa|ndlerTab|
|00004650| 6c 65 3b 0d 0d 74 79 70 | 65 64 65 66 20 73 74 72 |le;..typ|edef str|
|00004660| 75 63 74 20 57 45 53 74 | 79 6c 65 72 0d 7b 0d 09 |uct WESt|yler.{..|
|00004670| 46 6c 61 76 6f 72 54 79 | 70 65 20 73 74 79 6c 65 |FlavorTy|pe style|
|00004680| 72 54 79 70 65 3b 09 09 | 09 09 2f 2f 20 34 2d 6c |rType;..|..// 4-l|
|00004690| 65 74 74 65 72 20 74 61 | 67 20 69 64 65 6e 74 69 |etter ta|g identi|
|000046a0| 66 79 69 6e 67 20 73 74 | 79 6c 65 72 20 74 79 70 |fying st|yler typ|
|000046b0| 65 0d 09 57 45 48 61 6e | 64 6c 65 20 73 74 79 6c |e..WEHan|dle styl|
|000046c0| 65 72 4f 77 6e 65 72 3b | 09 09 09 09 2f 2f 20 68 |erOwner;|....// h|
|000046d0| 61 6e 64 6c 65 20 74 6f | 20 6f 77 6e 65 72 20 57 |andle to| owner W|
|000046e0| 45 20 69 6e 73 74 61 6e | 63 65 0d 09 53 49 6e 74 |E instan|ce..SInt|
|000046f0| 33 32 20 73 74 79 6c 65 | 72 52 65 66 43 6f 6e 3b |32 style|rRefCon;|
|00004700| 09 09 09 09 2f 2f 20 72 | 65 66 65 72 65 6e 63 65 |....// r|eference|
|00004710| 20 74 6f 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | to appl|ication |
|00004720| 64 61 74 61 0d 09 53 49 | 6e 74 33 32 20 73 74 79 |data..SI|nt32 sty|
|00004730| 6c 65 72 49 6e 64 65 78 | 3b 09 09 09 09 09 2f 2f |lerIndex|;.....//|
|00004740| 20 69 6e 64 65 78 20 69 | 6e 74 6f 20 73 74 79 6c | index i|nto styl|
|00004750| 65 72 20 74 61 62 6c 65 | 0d 09 48 61 6e 64 6c 65 |er table|..Handle|
|00004760| 20 73 74 79 6c 65 72 44 | 61 74 61 48 61 6e 64 6c | stylerD|ataHandl|
|00004770| 65 3b 09 09 09 2f 2f 20 | 68 61 6e 64 6c 65 20 74 |e;...// |handle t|
|00004780| 6f 20 73 74 79 6c 65 20 | 64 61 74 61 0d 7d 20 57 |o style |data.} W|
|00004790| 45 53 74 79 6c 65 72 3b | 0d 0d 74 79 70 65 64 65 |EStyler;|..typede|
|000047a0| 66 20 57 45 53 74 79 6c | 65 72 52 65 66 65 72 65 |f WEStyl|erRefere|
|000047b0| 6e 63 65 20 2a 2a 57 45 | 53 74 79 6c 65 72 54 61 |nce **WE|StylerTa|
|000047c0| 62 6c 65 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 74 |ble;..ty|pedef st|
|000047d0| 72 75 63 74 20 57 45 52 | 65 63 0d 7b 0d 09 47 72 |ruct WER|ec.{..Gr|
|000047e0| 61 66 50 74 72 20 70 6f | 72 74 3b 09 09 09 09 09 |afPtr po|rt;.....|
|000047f0| 09 09 2f 2f 20 67 72 61 | 70 68 69 63 73 20 70 6f |..// gra|phics po|
|00004800| 72 74 20 74 65 78 74 20 | 69 73 20 64 72 61 77 6e |rt text |is drawn|
|00004810| 20 69 6e 74 6f 0d 09 48 | 61 6e 64 6c 65 20 68 54 | into..H|andle hT|
|00004820| 65 78 74 3b 09 09 09 09 | 09 09 09 2f 2f 20 68 61 |ext;....|...// ha|
|00004830| 6e 64 6c 65 20 74 6f 20 | 74 68 65 20 74 65 78 74 |ndle to |the text|
|00004840| 0d 09 57 45 4c 69 6e 65 | 41 72 72 61 79 48 61 6e |..WELine|ArrayHan|
|00004850| 64 6c 65 20 68 4c 69 6e | 65 73 3b 09 09 09 09 2f |dle hLin|es;..../|
|00004860| 2f 20 68 61 6e 64 6c 65 | 20 74 6f 20 74 68 65 20 |/ handle| to the |
|00004870| 6c 69 6e 65 20 61 72 72 | 61 79 0d 09 57 45 53 74 |line arr|ay..WESt|
|00004880| 79 6c 65 54 61 62 6c 65 | 48 61 6e 64 6c 65 20 68 |yleTable|Handle h|
|00004890| 53 74 79 6c 65 73 3b 09 | 09 09 09 2f 2f 20 68 61 |Styles;.|...// ha|
|000048a0| 6e 64 6c 65 20 74 6f 20 | 74 68 65 20 73 74 79 6c |ndle to |the styl|
|000048b0| 65 20 74 61 62 6c 65 0d | 09 57 45 52 75 6e 41 72 |e table.|.WERunAr|
|000048c0| 72 61 79 48 61 6e 64 6c | 65 20 68 52 75 6e 73 3b |rayHandl|e hRuns;|
|000048d0| 09 09 09 09 09 2f 2f 20 | 68 61 6e 64 6c 65 20 74 |.....// |handle t|
|000048e0| 6f 20 74 68 65 20 73 74 | 79 6c 65 20 72 75 6e 20 |o the st|yle run |
|000048f0| 61 72 72 61 79 0d 09 53 | 49 6e 74 33 32 20 74 65 |array..S|Int32 te|
|00004900| 78 74 4c 65 6e 67 74 68 | 3b 09 09 09 09 09 09 2f |xtLength|;....../|
|00004910| 2f 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 65 78 74 |/ length| of text|
|00004920| 0d 09 53 49 6e 74 33 32 | 20 6e 4c 69 6e 65 73 3b |..SInt32| nLines;|
|00004930| 09 09 09 09 09 09 09 2f | 2f 20 6e 75 6d 62 65 72 |......./|/ number|
|00004940| 20 6f 66 20 6c 69 6e 65 | 73 0d 09 53 49 6e 74 33 | of line|s..SInt3|
|00004950| 32 20 6e 53 74 79 6c 65 | 73 3b 09 09 09 09 09 09 |2 nStyle|s;......|
|00004960| 09 2f 2f 20 6e 75 6d 62 | 65 72 20 6f 66 20 75 6e |.// numb|er of un|
|00004970| 69 71 75 65 20 73 74 79 | 6c 65 73 20 69 6e 20 74 |ique sty|les in t|
|00004980| 68 65 20 73 74 79 6c 65 | 20 74 61 62 6c 65 0d 09 |he style| table..|
|00004990| 53 49 6e 74 33 32 20 6e | 52 75 6e 73 3b 09 09 09 |SInt32 n|Runs;...|
|000049a0| 09 09 09 09 2f 2f 20 6e | 75 6d 62 65 72 20 6f 66 |....// n|umber of|
|000049b0| 20 73 74 79 6c 65 20 72 | 75 6e 73 0d 09 4c 6f 6e | style r|uns..Lon|
|000049c0| 67 52 65 63 74 20 76 69 | 65 77 52 65 63 74 3b 09 |gRect vi|ewRect;.|
|000049d0| 09 09 09 09 09 2f 2f 20 | 76 69 65 77 20 72 65 63 |.....// |view rec|
|000049e0| 74 61 6e 67 6c 65 2c 20 | 61 6c 6c 20 64 72 61 77 |tangle, |all draw|
|000049f0| 69 6e 67 20 69 73 20 63 | 6c 69 70 70 65 64 20 74 |ing is c|lipped t|
|00004a00| 6f 20 74 68 69 73 0d 09 | 4c 6f 6e 67 52 65 63 74 |o this..|LongRect|
|00004a10| 20 64 65 73 74 52 65 63 | 74 3b 09 09 09 09 09 09 | destRec|t;......|
|00004a20| 2f 2f 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 72 |// desti|nation r|
|00004a30| 65 63 74 61 6e 67 6c 65 | 0d 09 53 49 6e 74 33 32 |ectangle|..SInt32|
|00004a40| 20 73 65 6c 53 74 61 72 | 74 3b 09 09 09 09 09 09 | selStar|t;......|
|00004a50| 2f 2f 20 73 74 61 72 74 | 20 6f 66 20 73 65 6c 65 |// start| of sele|
|00004a60| 63 74 69 6f 6e 20 72 61 | 6e 67 65 0d 09 53 49 6e |ction ra|nge..SIn|
|00004a70| 74 33 32 20 73 65 6c 45 | 6e 64 3b 09 09 09 09 09 |t32 selE|nd;.....|
|00004a80| 09 09 2f 2f 20 65 6e 64 | 20 6f 66 20 73 65 6c 65 |..// end| of sele|
|00004a90| 63 74 69 6f 6e 20 72 61 | 6e 67 65 0d 09 55 49 6e |ction ra|nge..UIn|
|00004aa0| 74 33 32 20 66 6c 61 67 | 73 3b 09 09 09 09 09 09 |t32 flag|s;......|
|00004ab0| 09 2f 2f 20 33 32 20 62 | 69 74 73 20 6f 66 20 6d |.// 32 b|its of m|
|00004ac0| 69 73 63 65 6c 6c 61 6e | 65 6f 75 73 20 66 6c 61 |iscellan|eous fla|
|00004ad0| 67 73 20 28 70 72 69 76 | 61 74 65 29 0d 09 55 49 |gs (priv|ate)..UI|
|00004ae0| 6e 74 33 32 20 66 65 61 | 74 75 72 65 73 3b 09 09 |nt32 fea|tures;..|
|00004af0| 09 09 09 09 2f 2f 20 33 | 32 20 62 69 74 20 6f 66 |....// 3|2 bit of|
|00004b00| 20 66 65 61 74 75 72 65 | 20 66 6c 61 67 73 20 28 | feature| flags (|
|00004b10| 70 75 62 6c 69 63 29 0d | 09 55 49 6e 74 33 32 20 |public).|.UInt32 |
|00004b20| 63 61 72 65 74 54 69 6d | 65 3b 09 09 09 09 09 09 |caretTim|e;......|
|00004b30| 2f 2f 20 74 69 6d 65 20 | 6f 66 20 6d 6f 73 74 20 |// time |of most |
|00004b40| 72 65 63 65 6e 74 20 63 | 61 72 65 74 20 64 72 61 |recent c|aret dra|
|00004b50| 77 69 6e 67 2c 20 69 6e | 20 74 69 63 6b 73 0d 09 |wing, in| ticks..|
|00004b60| 55 49 6e 74 33 32 20 63 | 6c 69 63 6b 54 69 6d 65 |UInt32 c|lickTime|
|00004b70| 3b 09 09 09 09 09 09 2f | 2f 20 74 69 6d 65 20 6f |;....../|/ time o|
|00004b80| 66 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 63 6c |f most r|ecent cl|
|00004b90| 69 63 6b 2c 20 69 6e 20 | 74 69 63 6b 73 0d 09 53 |ick, in |ticks..S|
|00004ba0| 49 6e 74 33 32 20 63 6c | 69 63 6b 4c 6f 63 3b 09 |Int32 cl|ickLoc;.|
|00004bb0| 09 09 09 09 09 2f 2f 20 | 62 79 74 65 20 6f 66 66 |.....// |byte off|
|00004bc0| 73 65 74 20 6f 66 20 6d | 6f 73 74 20 72 65 63 65 |set of m|ost rece|
|00004bd0| 6e 74 20 63 6c 69 63 6b | 0d 09 53 49 6e 74 33 32 |nt click|..SInt32|
|00004be0| 20 61 6e 63 68 6f 72 53 | 74 61 72 74 3b 09 09 09 | anchorS|tart;...|
|00004bf0| 09 09 09 2f 2f 20 73 74 | 61 72 74 20 6f 66 66 73 |...// st|art offs|
|00004c00| 65 74 20 6f 66 20 61 6e | 63 68 6f 72 20 77 6f 72 |et of an|chor wor|
|00004c10| 64 2f 6c 69 6e 65 0d 09 | 53 49 6e 74 33 32 20 61 |d/line..|SInt32 a|
|00004c20| 6e 63 68 6f 72 45 6e 64 | 3b 09 09 09 09 09 09 2f |nchorEnd|;....../|
|00004c30| 2f 20 65 6e 64 20 6f 66 | 66 73 65 74 20 6f 66 20 |/ end of|fset of |
|00004c40| 61 6e 63 68 6f 72 20 77 | 6f 72 64 2f 6c 69 6e 65 |anchor w|ord/line|
|00004c50| 0d 09 63 68 61 72 20 66 | 69 72 73 74 42 79 74 65 |..char f|irstByte|
|00004c60| 3b 09 09 09 09 09 09 09 | 2f 2f 20 66 69 72 73 74 |;.......|// first|
|00004c70| 20 62 79 74 65 20 6f 66 | 20 61 20 64 6f 75 62 6c | byte of| a doubl|
|00004c80| 65 2d 62 79 74 65 20 63 | 68 61 72 61 63 74 65 72 |e-byte c|haracter|
|00004c90| 0d 09 57 45 45 64 67 65 | 20 63 6c 69 63 6b 45 64 |..WEEdge| clickEd|
|00004ca0| 67 65 3b 09 09 09 09 09 | 09 2f 2f 20 65 64 67 65 |ge;.....|.// edge|
|00004cb0| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 20 68 69 | of char|acter hi|
|00004cc0| 74 20 62 79 20 6d 6f 73 | 74 20 72 65 63 65 6e 74 |t by mos|t recent|
|00004cd0| 20 63 6c 69 63 6b 0d 09 | 55 49 6e 74 38 20 63 6c | click..|UInt8 cl|
|00004ce0| 69 63 6b 43 6f 75 6e 74 | 3b 09 09 09 09 09 09 2f |ickCount|;....../|
|00004cf0| 2f 20 6d 75 6c 74 69 70 | 6c 65 20 63 6c 69 63 6b |/ multip|le click|
|00004d00| 20 63 6f 75 6e 74 0d 09 | 57 45 41 6c 69 67 6e 6d | count..|WEAlignm|
|00004d10| 65 6e 74 20 61 6c 69 67 | 6e 6d 65 6e 74 3b 09 09 |ent alig|nment;..|
|00004d20| 09 09 09 2f 2f 20 61 6c | 69 67 6e 6d 65 6e 74 20 |...// al|ignment |
|00004d30| 73 74 79 6c 65 0d 09 57 | 45 44 69 72 65 63 74 69 |style..W|EDirecti|
|00004d40| 6f 6e 20 64 69 72 65 63 | 74 69 6f 6e 3b 09 09 09 |on direc|tion;...|
|00004d50| 09 09 2f 2f 20 64 6f 6d | 69 6e 61 6e 74 20 6c 69 |..// dom|inant li|
|00004d60| 6e 65 20 64 69 72 65 63 | 74 69 6f 6e 0d 09 53 49 |ne direc|tion..SI|
|00004d70| 6e 74 31 36 20 66 69 6c | 6c 65 72 31 3b 09 09 09 |nt16 fil|ler1;...|
|00004d80| 09 09 09 09 2f 2f 20 75 | 6e 75 73 65 64 0d 09 47 |....// u|nused..G|
|00004d90| 72 61 66 50 74 72 20 6f | 66 66 73 63 72 65 65 6e |rafPtr o|ffscreen|
|00004da0| 50 6f 72 74 3b 09 09 09 | 09 09 2f 2f 20 6f 66 66 |Port;...|..// off|
|00004db0| 73 63 72 65 65 6e 20 67 | 72 61 70 68 69 63 73 20 |screen g|raphics |
|00004dc0| 77 6f 72 6c 64 0d 09 52 | 67 6e 48 61 6e 64 6c 65 |world..R|gnHandle|
|00004dd0| 20 76 69 65 77 52 67 6e | 3b 09 09 09 09 09 09 2f | viewRgn|;....../|
|00004de0| 2f 20 68 61 6e 64 6c 65 | 20 74 6f 20 74 68 65 20 |/ handle| to the |
|00004df0| 76 69 65 77 20 72 65 67 | 69 6f 6e 0d 09 76 6f 69 |view reg|ion..voi|
|00004e00| 64 20 2a 72 65 66 43 6f | 6e 3b 09 09 09 09 09 09 |d *refCo|n;......|
|00004e10| 09 2f 2f 20 72 65 66 65 | 72 65 6e 63 65 20 76 61 |.// refe|rence va|
|00004e20| 6c 75 65 20 66 6f 72 20 | 63 6c 69 65 6e 74 20 75 |lue for |client u|
|00004e30| 73 65 0d 09 48 61 6e 64 | 6c 65 20 68 55 73 65 72 |se..Hand|le hUser|
|00004e40| 49 6e 66 6f 3b 09 09 09 | 09 09 09 2f 2f 20 6d 6f |Info;...|...// mo|
|00004e50| 72 65 20 6a 75 6e 6b 20 | 66 6f 72 20 63 6c 69 65 |re junk |for clie|
|00004e60| 6e 74 20 75 73 65 0d 09 | 54 53 4d 44 6f 63 75 6d |nt use..|TSMDocum|
|00004e70| 65 6e 74 49 44 20 74 73 | 6d 52 65 66 65 72 65 6e |entID ts|mReferen|
|00004e80| 63 65 3b 09 09 09 09 2f | 2f 20 72 65 66 65 72 65 |ce;..../|/ refere|
|00004e90| 6e 63 65 20 76 61 6c 75 | 65 20 66 6f 72 20 74 68 |nce valu|e for th|
|00004ea0| 65 20 74 65 78 74 20 73 | 65 72 76 69 63 65 73 20 |e text s|ervices |
|00004eb0| 6d 61 6e 61 67 65 72 0d | 09 53 49 6e 74 33 32 20 |manager.|.SInt32 |
|00004ec0| 74 73 6d 41 72 65 61 53 | 74 61 72 74 3b 09 09 09 |tsmAreaS|tart;...|
|00004ed0| 09 09 2f 2f 20 73 74 61 | 72 74 20 6f 66 20 61 63 |..// sta|rt of ac|
|00004ee0| 74 69 76 65 20 69 6e 70 | 75 74 20 61 72 65 61 20 |tive inp|ut area |
|00004ef0| 28 66 6f 72 20 54 53 4d | 29 0d 09 53 49 6e 74 33 |(for TSM|)..SInt3|
|00004f00| 32 20 74 73 6d 41 72 65 | 61 45 6e 64 3b 09 09 09 |2 tsmAre|aEnd;...|
|00004f10| 09 09 09 2f 2f 20 65 6e | 64 20 6f 66 20 61 63 74 |...// en|d of act|
|00004f20| 69 76 65 20 69 6e 70 75 | 74 20 61 72 65 61 0d 09 |ive inpu|t area..|
|00004f30| 44 72 61 67 52 65 66 65 | 72 65 6e 63 65 20 63 75 |DragRefe|rence cu|
|00004f40| 72 72 65 6e 74 44 72 61 | 67 3b 09 09 09 09 2f 2f |rrentDra|g;....//|
|00004f50| 20 72 65 66 65 72 65 6e | 63 65 20 6f 66 20 64 72 | referen|ce of dr|
|00004f60| 61 67 20 62 65 69 6e 67 | 20 74 72 61 63 6b 65 64 |ag being| tracked|
|00004f70| 20 62 79 20 5f 57 45 44 | 72 61 67 0d 09 53 49 6e | by _WED|rag..SIn|
|00004f80| 74 33 32 20 64 72 61 67 | 43 61 72 65 74 4f 66 66 |t32 drag|CaretOff|
|00004f90| 73 65 74 3b 09 09 09 09 | 09 2f 2f 20 6f 66 66 73 |set;....|.// offs|
|00004fa0| 65 74 20 74 6f 20 63 61 | 72 65 74 20 64 69 73 70 |et to ca|ret disp|
|00004fb0| 6c 61 79 65 64 20 64 75 | 72 69 6e 67 20 61 20 64 |layed du|ring a d|
|00004fc0| 72 61 67 0d 09 57 45 41 | 63 74 69 6f 6e 48 61 6e |rag..WEA|ctionHan|
|00004fd0| 64 6c 65 20 68 41 63 74 | 69 6f 6e 53 74 61 63 6b |dle hAct|ionStack|
|00004fe0| 3b 09 09 09 2f 2f 20 61 | 63 74 69 6f 6e 20 73 74 |;...// a|ction st|
|00004ff0| 61 63 6b 20 66 6f 72 20 | 75 6e 64 6f 0d 09 55 49 |ack for |undo..UI|
|00005000| 6e 74 33 32 20 6d 6f 64 | 43 6f 75 6e 74 3b 09 09 |nt32 mod|Count;..|
|00005010| 09 09 09 09 2f 2f 20 6d | 6f 64 69 66 69 63 61 74 |....// m|odificat|
|00005020| 69 6f 6e 20 63 6f 75 6e | 74 0d 09 57 45 43 6c 69 |ion coun|t..WECli|
|00005030| 63 6b 4c 6f 6f 70 55 50 | 50 20 63 6c 69 63 6b 4c |ckLoopUP|P clickL|
|00005040| 6f 6f 70 3b 09 09 09 09 | 2f 2f 20 63 6c 69 63 6b |oop;....|// click|
|00005050| 20 6c 6f 6f 70 20 63 61 | 6c 6c 62 61 63 6b 0d 09 | loop ca|llback..|
|00005060| 57 45 53 63 72 6f 6c 6c | 55 50 50 20 73 63 72 6f |WEScroll|UPP scro|
|00005070| 6c 6c 50 72 6f 63 3b 09 | 09 09 09 09 2f 2f 20 73 |llProc;.|....// s|
|00005080| 63 72 6f 6c 6c 20 63 61 | 6c 6c 62 61 63 6b 0d 09 |croll ca|llback..|
|00005090| 57 45 54 53 4d 50 72 65 | 55 70 64 61 74 65 55 50 |WETSMPre|UpdateUP|
|000050a0| 50 20 74 73 6d 50 72 65 | 55 70 64 61 74 65 3b 09 |P tsmPre|Update;.|
|000050b0| 09 09 2f 2f 20 54 53 4d | 20 70 72 65 2d 75 70 64 |..// TSM| pre-upd|
|000050c0| 61 74 65 20 63 61 6c 6c | 62 61 63 6b 0d 09 57 45 |ate call|back..WE|
|000050d0| 54 53 4d 50 6f 73 74 55 | 70 64 61 74 65 55 50 50 |TSMPostU|pdateUPP|
|000050e0| 20 74 73 6d 50 6f 73 74 | 55 70 64 61 74 65 3b 09 | tsmPost|Update;.|
|000050f0| 09 2f 2f 20 54 53 4d 20 | 70 6f 73 74 2d 75 70 64 |.// TSM |post-upd|
|00005100| 61 74 65 20 63 61 6c 6c | 62 61 63 6b 0d 09 57 45 |ate call|back..WE|
|00005110| 50 72 65 54 72 61 63 6b | 44 72 61 67 55 50 50 20 |PreTrack|DragUPP |
|00005120| 70 72 65 54 72 61 63 6b | 44 72 61 67 48 6f 6f 6b |preTrack|DragHook|
|00005130| 3b 09 09 2f 2f 20 70 72 | 65 2d 54 72 61 63 6b 44 |;..// pr|e-TrackD|
|00005140| 72 61 67 20 68 6f 6f 6b | 0d 09 57 45 54 72 61 6e |rag hook|..WETran|
|00005150| 73 6c 61 74 65 44 72 61 | 67 55 50 50 20 74 72 61 |slateDra|gUPP tra|
|00005160| 6e 73 6c 61 74 65 44 72 | 61 67 48 6f 6f 6b 3b 09 |nslateDr|agHook;.|
|00005170| 2f 2f 20 64 72 61 67 20 | 74 72 61 6e 73 6c 61 74 |// drag |translat|
|00005180| 69 6f 6e 20 68 6f 6f 6b | 0d 09 57 45 48 69 6c 69 |ion hook|..WEHili|
|00005190| 74 65 44 72 6f 70 41 72 | 65 61 55 50 50 20 68 69 |teDropAr|eaUPP hi|
|000051a0| 6c 69 74 65 44 72 6f 70 | 41 72 65 61 48 6f 6f 6b |liteDrop|AreaHook|
|000051b0| 3b 09 2f 2f 20 64 72 6f | 70 20 61 72 65 61 20 68 |;.// dro|p area h|
|000051c0| 69 67 68 6c 69 67 68 74 | 69 6e 67 20 68 6f 6f 6b |ighlight|ing hook|
|000051d0| 0d 09 57 45 44 72 61 77 | 54 65 78 74 55 50 50 20 |..WEDraw|TextUPP |
|000051e0| 64 72 61 77 54 65 78 74 | 48 6f 6f 6b 3b 09 09 09 |drawText|Hook;...|
|000051f0| 09 2f 2f 20 68 6f 6f 6b | 20 66 6f 72 20 64 72 61 |.// hook| for dra|
|00005200| 77 69 6e 67 20 74 65 78 | 74 0d 09 57 45 50 69 78 |wing tex|t..WEPix|
|00005210| 65 6c 54 6f 43 68 61 72 | 55 50 50 20 70 69 78 65 |elToChar|UPP pixe|
|00005220| 6c 54 6f 43 68 61 72 48 | 6f 6f 6b 3b 09 09 2f 2f |lToCharH|ook;..//|
|00005230| 20 68 6f 6f 6b 20 66 6f | 72 20 68 69 74 2d 74 65 | hook fo|r hit-te|
|00005240| 73 74 69 6e 67 0d 09 57 | 45 43 68 61 72 54 6f 50 |sting..W|ECharToP|
|00005250| 69 78 65 6c 55 50 50 20 | 63 68 61 72 54 6f 50 69 |ixelUPP |charToPi|
|00005260| 78 65 6c 48 6f 6f 6b 3b | 09 09 2f 2f 20 68 6f 6f |xelHook;|..// hoo|
|00005270| 6b 20 66 6f 72 20 6c 6f | 63 61 74 69 6e 67 20 67 |k for lo|cating g|
|00005280| 6c 79 70 68 20 70 6f 73 | 69 74 69 6f 6e 0d 09 57 |lyph pos|ition..W|
|00005290| 45 4c 69 6e 65 42 72 65 | 61 6b 55 50 50 20 6c 69 |ELineBre|akUPP li|
|000052a0| 6e 65 42 72 65 61 6b 48 | 6f 6f 6b 3b 09 09 09 2f |neBreakH|ook;.../|
|000052b0| 2f 20 68 6f 6f 6b 20 66 | 6f 72 20 66 69 6e 64 69 |/ hook f|or findi|
|000052c0| 6e 67 20 6c 69 6e 65 20 | 62 72 65 61 6b 73 0d 09 |ng line |breaks..|
|000052d0| 57 45 57 6f 72 64 42 72 | 65 61 6b 55 50 50 20 77 |WEWordBr|eakUPP w|
|000052e0| 6f 72 64 42 72 65 61 6b | 48 6f 6f 6b 3b 09 09 09 |ordBreak|Hook;...|
|000052f0| 2f 2f 20 68 6f 6f 6b 20 | 66 6f 72 20 66 69 6e 64 |// hook |for find|
|00005300| 69 6e 67 20 77 6f 72 64 | 20 62 72 65 61 6b 73 0d |ing word| breaks.|
|00005310| 09 57 45 43 68 61 72 42 | 79 74 65 55 50 50 20 63 |.WECharB|yteUPP c|
|00005320| 68 61 72 42 79 74 65 48 | 6f 6f 6b 3b 09 09 09 09 |harByteH|ook;....|
|00005330| 2f 2f 20 68 6f 6f 6b 20 | 66 6f 72 20 66 69 6e 64 |// hook |for find|
|00005340| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 20 62 79 |ing char|acter by|
|00005350| 74 65 20 74 79 70 65 0d | 09 57 45 43 68 61 72 54 |te type.|.WECharT|
|00005360| 79 70 65 55 50 50 20 63 | 68 61 72 54 79 70 65 48 |ypeUPP c|harTypeH|
|00005370| 6f 6f 6b 3b 09 09 09 09 | 2f 2f 20 68 6f 6f 6b 20 |ook;....|// hook |
|00005380| 66 6f 72 20 66 69 6e 64 | 69 6e 67 20 63 68 61 72 |for find|ing char|
|00005390| 61 63 74 65 72 20 74 79 | 70 65 0d 09 57 45 45 72 |acter ty|pe..WEEr|
|000053a0| 61 73 65 55 50 50 20 65 | 72 61 73 65 48 6f 6f 6b |aseUPP e|raseHook|
|000053b0| 3b 09 09 09 09 09 2f 2f | 20 68 6f 6f 6b 20 66 6f |;.....//| hook fo|
|000053c0| 72 20 65 72 61 73 69 6e | 67 20 62 61 63 6b 67 72 |r erasin|g backgr|
|000053d0| 6f 75 6e 64 0d 09 57 45 | 46 6c 75 78 55 50 50 20 |ound..WE|FluxUPP |
|000053e0| 66 6c 75 78 50 72 6f 63 | 3b 09 09 09 09 09 09 2f |fluxProc|;....../|
|000053f0| 2f 20 66 6c 75 78 20 63 | 61 6c 6c 62 61 63 6b 0d |/ flux c|allback.|
|00005400| 09 57 45 52 75 6e 41 74 | 74 72 69 62 75 74 65 73 |.WERunAt|tributes|
|00005410| 20 6e 75 6c 6c 53 74 79 | 6c 65 3b 09 09 09 09 2f | nullSty|le;..../|
|00005420| 2f 20 73 74 79 6c 65 20 | 66 6f 72 20 6e 75 6c 6c |/ style |for null|
|00005430| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 09 57 45 4f 48 | selecti|on..WEOH|
|00005440| 54 61 62 6c 65 48 61 6e | 64 6c 65 20 68 4f 62 6a |TableHan|dle hObj|
|00005450| 65 63 74 48 61 6e 64 6c | 65 72 54 61 62 6c 65 3b |ectHandl|erTable;|
|00005460| 09 2f 2f 20 68 61 6e 64 | 6c 65 20 74 6f 20 6f 62 |.// hand|le to ob|
|00005470| 6a 65 63 74 20 68 61 6e | 64 6c 65 72 20 74 61 62 |ject han|dler tab|
|00005480| 6c 65 20 66 6f 72 20 74 | 68 69 73 20 69 6e 73 74 |le for t|his inst|
|00005490| 61 6e 63 65 0d 09 53 49 | 6e 74 33 32 20 74 72 61 |ance..SI|nt32 tra|
|000054a0| 6e 73 6c 75 63 65 6e 63 | 79 54 68 72 65 73 68 6f |nslucenc|yThresho|
|000054b0| 6c 64 3b 09 09 09 2f 2f | 20 75 73 65 20 74 72 61 |ld;...//| use tra|
|000054c0| 6e 73 6c 75 63 65 6e 74 | 20 64 72 61 67 73 20 75 |nslucent| drags u|
|000054d0| 6e 6c 65 73 73 20 73 65 | 6c 65 63 74 69 6f 6e 20 |nless se|lection |
|000054e0| 61 72 65 61 20 65 78 63 | 65 65 64 73 20 74 68 69 |area exc|eeds thi|
|000054f0| 73 0d 09 53 74 72 69 6e | 67 48 61 6e 64 6c 65 20 |s..Strin|gHandle |
|00005500| 68 55 52 4c 48 69 6e 74 | 3b 09 09 09 09 09 2f 2f |hURLHint|;.....//|
|00005510| 20 68 69 6e 74 20 73 74 | 72 69 6e 67 20 66 6f 72 | hint st|ring for|
|00005520| 20 73 6c 61 63 6b 20 55 | 52 4c 73 0d 23 69 66 20 | slack U|RLs.#if |
|00005530| 57 41 53 54 45 5f 53 54 | 59 4c 45 52 53 0d 09 57 |WASTE_ST|YLERS..W|
|00005540| 45 53 74 79 6c 65 72 54 | 61 62 6c 65 20 68 53 74 |EStylerT|able hSt|
|00005550| 79 6c 65 72 73 3b 09 09 | 09 09 09 2f 2f 20 6f 77 |ylers;..|...// ow|
|00005560| 6e 73 20 74 68 65 20 73 | 74 79 6c 65 72 73 20 66 |ns the s|tylers f|
|00005570| 6f 72 20 74 68 69 73 20 | 69 6e 73 74 61 6e 63 65 |or this |instance|
|00005580| 0d 23 65 6e 64 69 66 0d | 23 69 66 20 57 41 53 54 |.#endif.|#if WAST|
|00005590| 45 5f 53 43 41 4c 45 0d | 09 50 6f 69 6e 74 20 73 |E_SCALE.|.Point s|
|000055a0| 63 61 6c 65 4e 75 6d 65 | 72 3b 09 09 09 09 09 09 |caleNume|r;......|
|000055b0| 2f 2f 20 4e 75 6d 65 72 | 61 74 6f 72 20 66 6f 72 |// Numer|ator for|
|000055c0| 20 73 63 61 6c 65 0d 09 | 50 6f 69 6e 74 20 73 63 | scale..|Point sc|
|000055d0| 61 6c 65 44 65 6e 6f 6d | 3b 09 09 09 09 09 09 2f |aleDenom|;....../|
|000055e0| 2f 20 44 65 6e 6f 6d 69 | 6e 61 74 6f 72 20 66 6f |/ Denomi|nator fo|
|000055f0| 72 20 73 63 61 6c 65 0d | 23 65 6e 64 69 66 0d 7d |r scale.|#endif.}|
|00005600| 20 57 45 52 65 63 3b 0d | 0d 73 74 72 75 63 74 20 | WERec;.|.struct |
|00005610| 53 4c 44 72 61 77 44 61 | 74 61 0d 7b 0d 09 47 72 |SLDrawDa|ta.{..Gr|
|00005620| 61 66 50 74 72 20 73 63 | 72 65 65 6e 50 6f 72 74 |afPtr sc|reenPort|
|00005630| 3b 0d 09 47 44 48 61 6e | 64 6c 65 20 73 63 72 65 |;..GDHan|dle scre|
|00005640| 65 6e 44 65 76 69 63 65 | 3b 0d 09 50 69 78 4d 61 |enDevice|;..PixMa|
|00005650| 70 48 61 6e 64 6c 65 20 | 6f 66 66 73 63 72 65 65 |pHandle |offscree|
|00005660| 6e 50 69 78 65 6c 73 3b | 09 2f 2f 20 6f 66 66 73 |nPixels;|.// offs|
|00005670| 63 72 65 65 6e 20 70 69 | 78 65 6c 20 6d 61 70 0d |creen pi|xel map.|
|00005680| 09 52 65 63 74 20 62 6f | 75 6e 64 73 3b 09 09 09 |.Rect bo|unds;...|
|00005690| 09 09 2f 2f 20 62 6f 75 | 6e 64 73 20 6f 66 20 6f |..// bou|nds of o|
|000056a0| 66 66 73 63 72 65 65 6e | 20 62 75 66 66 65 72 2c |ffscreen| buffer,|
|000056b0| 20 69 6e 20 67 6c 6f 62 | 61 6c 20 63 6f 6f 72 64 | in glob|al coord|
|000056c0| 73 0d 09 52 65 63 74 20 | 6c 69 6e 65 52 65 63 74 |s..Rect |lineRect|
|000056d0| 3b 09 09 09 09 09 2f 2f | 20 72 65 63 74 20 65 6e |;.....//| rect en|
|000056e0| 63 6c 6f 73 69 6e 67 20 | 63 75 72 72 65 6e 74 20 |closing |current |
|000056f0| 6c 69 6e 65 0d 09 52 65 | 63 74 20 64 72 61 77 52 |line..Re|ct drawR|
|00005700| 65 63 74 3b 09 09 09 09 | 09 2f 2f 20 76 69 73 69 |ect;....|.// visi|
|00005710| 62 6c 65 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 6c |ble port|ion of l|
|00005720| 69 6e 65 20 72 65 63 74 | 0d 09 42 6f 6f 6c 65 61 |ine rect|..Boolea|
|00005730| 6e 20 75 73 69 6e 67 43 | 6f 6c 6f 72 3b 09 09 09 |n usingC|olor;...|
|00005740| 09 2f 2f 20 74 72 75 65 | 20 69 66 20 64 72 61 77 |.// true| if draw|
|00005750| 69 6e 67 20 69 6e 20 63 | 6f 6c 6f 72 0d 09 42 6f |ing in c|olor..Bo|
|00005760| 6f 6c 65 61 6e 20 75 73 | 69 6e 67 4f 66 66 73 63 |olean us|ingOffsc|
|00005770| 72 65 65 6e 3b 09 09 09 | 2f 2f 20 74 72 75 65 20 |reen;...|// true |
|00005780| 69 66 20 61 6e 20 6f 66 | 66 73 63 72 65 65 6e 20 |if an of|fscreen |
|00005790| 67 72 61 70 68 69 63 73 | 20 77 6f 72 6c 64 20 68 |graphics| world h|
|000057a0| 61 73 20 62 65 65 6e 20 | 73 65 74 20 75 70 0d 09 |as been |set up..|
|000057b0| 42 6f 6f 6c 65 61 6e 20 | 64 72 61 77 69 6e 67 4f |Boolean |drawingO|
|000057c0| 66 66 73 63 72 65 65 6e | 3b 09 09 2f 2f 20 74 72 |ffscreen|;..// tr|
|000057d0| 75 65 20 69 66 20 61 63 | 74 75 61 6c 6c 79 20 64 |ue if ac|tually d|
|000057e0| 72 61 77 69 6e 67 20 74 | 6f 20 61 6e 20 6f 66 66 |rawing t|o an off|
|000057f0| 73 63 72 65 65 6e 20 62 | 75 66 66 65 72 0d 09 42 |screen b|uffer..B|
|00005800| 6f 6f 6c 65 61 6e 20 64 | 6f 45 72 61 73 65 3b 09 |oolean d|oErase;.|
|00005810| 09 09 09 2f 2f 20 74 72 | 75 65 20 69 66 20 6c 69 |...// tr|ue if li|
|00005820| 6e 65 20 72 65 63 74 61 | 6e 67 6c 65 20 73 68 6f |ne recta|ngle sho|
|00005830| 75 6c 64 20 62 65 20 65 | 72 61 73 65 64 20 62 65 |uld be e|rased be|
|00005840| 66 6f 72 65 20 64 72 61 | 77 69 6e 67 0d 7d 3b 0d |fore dra|wing.};.|
|00005850| 0d 73 74 72 75 63 74 20 | 53 4c 43 61 6c 63 53 6c |.struct |SLCalcSl|
|00005860| 6f 70 44 61 74 61 0d 7b | 0d 09 53 49 6e 74 31 36 |opData.{|..SInt16|
|00005870| 20 6c 69 6e 65 57 69 64 | 74 68 3b 0d 09 53 49 6e | lineWid|th;..SIn|
|00005880| 74 31 36 20 74 6f 74 61 | 6c 53 6c 6f 70 3b 0d 09 |t16 tota|lSlop;..|
|00005890| 46 69 78 65 64 20 74 6f | 74 61 6c 50 72 6f 70 6f |Fixed to|talPropo|
|000058a0| 72 74 69 6f 6e 3b 0d 7d | 3b 0d 0d 73 74 72 75 63 |rtion;.}|;..struc|
|000058b0| 74 20 53 4c 50 69 78 65 | 6c 54 6f 43 68 61 72 44 |t SLPixe|lToCharD|
|000058c0| 61 74 61 0d 7b 0d 09 46 | 69 78 65 64 20 68 50 6f |ata.{..F|ixed hPo|
|000058d0| 73 3b 0d 09 46 69 78 65 | 64 20 70 69 78 65 6c 57 |s;..Fixe|d pixelW|
|000058e0| 69 64 74 68 3b 0d 09 53 | 49 6e 74 33 32 20 6f 66 |idth;..S|Int32 of|
|000058f0| 66 73 65 74 3b 0d 09 57 | 45 45 64 67 65 20 65 64 |fset;..W|EEdge ed|
|00005900| 67 65 3b 0d 7d 3b 0d 0d | 73 74 72 75 63 74 20 53 |ge;.};..|struct S|
|00005910| 4c 43 68 61 72 54 6f 50 | 69 78 65 6c 44 61 74 61 |LCharToP|ixelData|
|00005920| 0d 7b 0d 09 4c 6f 6e 67 | 50 74 20 2a 74 68 65 50 |.{..Long|Pt *theP|
|00005930| 6f 69 6e 74 3b 0d 09 53 | 49 6e 74 33 32 20 6f 66 |oint;..S|Int32 of|
|00005940| 66 73 65 74 3b 0d 09 53 | 49 6e 74 31 36 20 64 69 |fset;..S|Int16 di|
|00005950| 72 65 63 74 69 6f 6e 3b | 0d 09 42 6f 6f 6c 65 61 |rection;|..Boolea|
|00005960| 6e 20 6c 69 6e 65 44 69 | 72 3b 09 2f 2f 20 69 73 |n lineDi|r;.// is|
|00005970| 20 74 68 65 20 6c 69 6e | 65 20 64 69 72 65 63 74 | the lin|e direct|
|00005980| 69 6f 6e 20 52 4c 3f 0d | 09 42 6f 6f 6c 65 61 6e |ion RL?.|.Boolean|
|00005990| 20 72 69 67 68 74 45 64 | 67 65 3b 09 2f 2f 20 61 | rightEd|ge;.// a|
|000059a0| 72 65 20 77 65 20 67 65 | 74 74 69 6e 67 20 74 68 |re we ge|tting th|
|000059b0| 65 20 72 69 67 68 74 20 | 65 64 67 65 20 6f 66 20 |e right |edge of |
|000059c0| 74 68 65 20 6c 69 6e 65 | 3f 0d 7d 3b 0d 0d 73 74 |the line|?.};..st|
|000059d0| 72 75 63 74 20 53 4c 43 | 6f 6c 6c 65 63 74 48 69 |ruct SLC|ollectHi|
|000059e0| 6c 69 74 65 52 67 6e 44 | 61 74 61 0d 7b 0d 09 53 |liteRgnD|ata.{..S|
|000059f0| 49 6e 74 33 32 20 72 61 | 6e 67 65 53 74 61 72 74 |Int32 ra|ngeStart|
|00005a00| 3b 0d 09 53 49 6e 74 33 | 32 20 72 61 6e 67 65 45 |;..SInt3|2 rangeE|
|00005a10| 6e 64 3b 0d 09 53 49 6e | 74 31 36 20 68 50 6f 73 |nd;..SIn|t16 hPos|
|00005a20| 3b 0d 7d 3b 0d 0d 73 74 | 72 75 63 74 20 53 4c 43 |;.};..st|ruct SLC|
|00005a30| 72 6f 73 73 44 69 72 65 | 63 74 69 6f 6e 42 6f 75 |rossDire|ctionBou|
|00005a40| 6e 64 61 72 79 44 61 74 | 61 0d 7b 0d 09 53 49 6e |ndaryDat|a.{..SIn|
|00005a50| 74 33 32 20 6f 6c 64 4f | 66 66 73 65 74 3b 09 09 |t32 oldO|ffset;..|
|00005a60| 2f 2f 09 6f 66 66 73 65 | 74 20 62 65 66 6f 72 65 |//.offse|t before|
|00005a70| 20 63 72 6f 73 73 69 6e | 67 20 64 69 72 65 63 74 | crossin|g direct|
|00005a80| 69 6f 6e 20 62 6f 75 6e | 64 61 72 79 0d 09 53 49 |ion boun|dary..SI|
|00005a90| 6e 74 33 32 20 6e 65 77 | 4f 66 66 73 65 74 3b 09 |nt32 new|Offset;.|
|00005aa0| 09 2f 2f 09 6f 66 66 73 | 65 74 20 61 66 74 65 72 |.//.offs|et after|
|00005ab0| 20 63 72 6f 73 73 69 6e | 67 20 64 69 72 65 63 74 | crossin|g direct|
|00005ac0| 69 6f 6e 20 62 6f 75 6e | 64 61 72 79 0d 09 42 6f |ion boun|dary..Bo|
|00005ad0| 6f 6c 65 61 6e 20 6d 6f | 76 69 6e 67 52 69 67 68 |olean mo|vingRigh|
|00005ae0| 74 3b 09 2f 2f 09 6d 6f | 76 69 6e 67 20 69 6e 73 |t;.//.mo|ving ins|
|00005af0| 65 72 74 69 6f 6e 20 70 | 6f 69 6e 74 20 74 6f 20 |ertion p|oint to |
|00005b00| 74 68 65 20 72 69 67 68 | 74 3f 0d 09 42 6f 6f 6c |the righ|t?..Bool|
|00005b10| 65 61 6e 20 69 73 44 6f | 6e 65 3b 0d 7d 3b 0d 0d |ean isDo|ne;.};..|
|00005b20| 73 74 72 75 63 74 20 46 | 6f 72 6d 61 74 4f 72 64 |struct F|ormatOrd|
|00005b30| 65 72 44 61 74 61 0d 7b | 0d 09 53 49 6e 74 33 32 |erData.{|..SInt32|
|00005b40| 20 66 69 72 73 74 52 75 | 6e 3b 0d 09 57 45 48 61 | firstRu|n;..WEHa|
|00005b50| 6e 64 6c 65 20 68 57 45 | 3b 0d 7d 3b 0d 0d 23 69 |ndle hWE|;.};..#i|
|00005b60| 66 20 50 52 41 47 4d 41 | 5f 53 54 52 55 43 54 5f |f PRAGMA|_STRUCT_|
|00005b70| 41 4c 49 47 4e 0d 23 70 | 72 61 67 6d 61 20 6f 70 |ALIGN.#p|ragma op|
|00005b80| 74 69 6f 6e 73 20 61 6c | 69 67 6e 3d 72 65 73 65 |tions al|ign=rese|
|00005b90| 74 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 64 65 66 |t.#endif|..#ifdef|
|00005ba0| 20 5f 5f 63 70 6c 75 73 | 70 6c 75 73 0d 65 78 74 | __cplus|plus.ext|
|00005bb0| 65 72 6e 20 22 43 22 20 | 7b 0d 23 65 6e 64 69 66 |ern "C" |{.#endif|
|00005bc0| 0d 0d 2f 2f 09 50 55 42 | 4c 49 43 20 52 4f 55 54 |..//.PUB|LIC ROUT|
|00005bd0| 49 4e 45 53 0d 0d 2f 2f | 09 57 45 53 65 6c 65 63 |INES..//|.WESelec|
|00005be0| 74 69 6e 67 2e 63 20 28 | 70 75 62 6c 69 63 29 0d |ting.c (|public).|
|00005bf0| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 57 45 50 69 |pascal v|oid WEPi|
|00005c00| 6e 53 63 72 6f 6c 6c 28 | 53 49 6e 74 33 32 20 68 |nScroll(|SInt32 h|
|00005c10| 4f 66 66 73 65 74 2c 20 | 53 49 6e 74 33 32 20 76 |Offset, |SInt32 v|
|00005c20| 4f 66 66 73 65 74 2c 20 | 57 45 48 61 6e 64 6c 65 |Offset, |WEHandle|
|00005c30| 20 68 57 45 29 3b 0d 0d | 2f 2f 09 57 45 53 68 61 | hWE);..|//.WESha|
|00005c40| 72 65 64 4c 69 62 72 61 | 72 79 2e 63 0d 70 61 73 |redLibra|ry.c.pas|
|00005c50| 63 61 6c 20 4f 53 45 72 | 72 20 5f 57 45 43 46 4d |cal OSEr|r _WECFM|
|00005c60| 49 6e 69 74 69 61 6c 69 | 7a 65 28 63 6f 6e 73 74 |Initiali|ze(const|
|00005c70| 20 43 46 72 61 67 49 6e | 69 74 42 6c 6f 63 6b 20 | CFragIn|itBlock |
|00005c80| 2a 74 68 65 49 6e 69 74 | 42 6c 6f 63 6b 29 3b 0d |*theInit|Block);.|
|00005c90| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 5f 57 45 43 |pascal v|oid _WEC|
|00005ca0| 46 4d 54 65 72 6d 69 6e | 61 74 65 28 76 6f 69 64 |FMTermin|ate(void|
|00005cb0| 29 3b 0d 0d 0d 2f 2f 09 | 50 52 49 56 41 54 45 20 |);...//.|PRIVATE |
|00005cc0| 52 4f 55 54 49 4e 45 53 | 0d 0d 2f 2f 09 54 68 65 |ROUTINES|..//.The|
|00005cd0| 73 65 20 72 6f 75 74 69 | 6e 65 73 20 73 68 6f 75 |se routi|nes shou|
|00005ce0| 6c 64 20 62 65 20 65 6c | 69 67 69 62 6c 65 20 74 |ld be el|igible t|
|00005cf0| 6f 20 62 65 20 74 61 67 | 67 65 64 20 22 69 6e 74 |o be tag|ged "int|
|00005d00| 65 72 6e 61 6c 22 20 77 | 68 65 6e 0d 2f 2f 09 62 |ernal" w|hen.//.b|
|00005d10| 75 69 6c 64 69 6e 67 20 | 61 20 43 46 4d 20 73 68 |uilding |a CFM sh|
|00005d20| 61 72 65 64 20 6c 69 62 | 72 61 72 79 3a 20 74 68 |ared lib|rary: th|
|00005d30| 65 79 20 73 68 6f 75 6c | 64 20 6e 65 76 65 72 20 |ey shoul|d never |
|00005d40| 62 65 20 65 78 70 6f 72 | 74 65 64 0d 2f 2f 09 28 |be expor|ted.//.(|
|00005d50| 6c 69 73 74 65 64 20 69 | 6e 20 74 68 65 20 2e 65 |listed i|n the .e|
|00005d60| 78 70 20 66 69 6c 65 29 | 20 61 6e 64 20 74 68 65 |xp file)| and the|
|00005d70| 69 72 20 61 64 64 72 65 | 73 73 20 73 68 6f 75 6c |ir addre|ss shoul|
|00005d80| 64 20 6e 65 76 65 72 20 | 62 65 20 70 61 73 73 65 |d never |be passe|
|00005d90| 64 0d 2f 2f 09 74 6f 20 | 61 6e 20 65 78 74 65 72 |d.//.to |an exter|
|00005da0| 6e 61 6c 20 66 72 61 67 | 6d 65 6e 74 2e 0d 0d 23 |nal frag|ment...#|
|00005db0| 69 66 20 57 41 53 54 45 | 5f 53 48 41 52 45 44 5f |if WASTE|_SHARED_|
|00005dc0| 4c 49 42 52 41 52 59 0d | 23 70 72 61 67 6d 61 20 |LIBRARY.|#pragma |
|00005dd0| 69 6e 74 65 72 6e 61 6c | 20 6f 6e 0d 23 65 6e 64 |internal| on.#end|
|00005de0| 69 66 0d 0d 2f 2f 09 57 | 45 41 63 63 65 73 73 6f |if..//.W|EAccesso|
|00005df0| 72 73 2e 63 20 28 70 72 | 69 76 61 74 65 29 0d 70 |rs.c (pr|ivate).p|
|00005e00| 61 73 63 61 6c 20 53 49 | 6e 74 33 32 20 5f 57 45 |ascal SI|nt32 _WE|
|00005e10| 50 69 78 65 6c 54 6f 4c | 69 6e 65 28 53 49 6e 74 |PixelToL|ine(SInt|
|00005e20| 33 32 20 76 4f 66 66 73 | 65 74 2c 20 57 45 48 61 |32 vOffs|et, WEHa|
|00005e30| 6e 64 6c 65 20 68 57 45 | 29 3b 0d 70 61 73 63 61 |ndle hWE|);.pasca|
|00005e40| 6c 20 76 6f 69 64 20 5f | 57 45 47 65 74 49 6e 64 |l void _|WEGetInd|
|00005e50| 53 74 79 6c 65 28 53 49 | 6e 74 33 32 20 72 75 6e |Style(SI|nt32 run|
|00005e60| 49 6e 64 65 78 2c 20 57 | 45 52 75 6e 49 6e 66 6f |Index, W|ERunInfo|
|00005e70| 50 72 69 76 20 2a 69 6e | 66 6f 2c 20 57 45 48 61 |Priv *in|fo, WEHa|
|00005e80| 6e 64 6c 65 20 68 57 45 | 29 3b 0d 70 61 73 63 61 |ndle hWE|);.pasca|
|00005e90| 6c 20 42 6f 6f 6c 65 61 | 6e 20 5f 57 45 47 65 74 |l Boolea|n _WEGet|
|00005ea0| 49 6e 64 44 69 72 65 63 | 74 69 6f 6e 28 53 49 6e |IndDirec|tion(SIn|
|00005eb0| 74 33 32 20 72 75 6e 49 | 6e 64 65 78 2c 20 57 45 |t32 runI|ndex, WE|
|00005ec0| 48 61 6e 64 6c 65 20 68 | 57 45 29 3b 0d 0d 2f 2f |Handle h|WE);..//|
|00005ed0| 09 57 45 42 69 72 74 68 | 44 65 61 74 68 2e 63 20 |.WEBirth|Death.c |
|00005ee0| 28 70 72 69 76 61 74 65 | 29 0d 65 78 74 65 72 6e |(private|).extern|
|00005ef0| 20 63 6f 6e 73 74 20 50 | 6f 69 6e 74 20 6b 4f 6e | const P|oint kOn|
|00005f00| 65 54 6f 4f 6e 65 53 63 | 61 6c 69 6e 67 3b 0d 70 |eToOneSc|aling;.p|
|00005f10| 61 73 63 61 6c 20 76 6f | 69 64 20 5f 57 45 52 65 |ascal vo|id _WERe|
|00005f20| 73 65 74 53 74 79 6c 65 | 54 61 62 6c 65 28 57 45 |setStyle|Table(WE|
|00005f30| 48 61 6e 64 6c 65 20 68 | 57 45 29 3b 0d 70 61 73 |Handle h|WE);.pas|
|00005f40| 63 61 6c 20 4f 53 45 72 | 72 20 5f 57 45 52 65 67 |cal OSEr|r _WEReg|
|00005f50| 69 73 74 65 72 57 69 74 | 68 54 53 4d 28 57 45 48 |isterWit|hTSM(WEH|
|00005f60| 61 6e 64 6c 65 20 68 57 | 45 29 3b 0d 70 61 73 63 |andle hW|E);.pasc|
|00005f70| 61 6c 20 76 6f 69 64 20 | 5f 57 45 53 65 74 53 74 |al void |_WESetSt|
|00005f80| 61 6e 64 61 72 64 48 6f | 6f 6b 73 28 57 45 48 61 |andardHo|oks(WEHa|
|00005f90| 6e 64 6c 65 20 68 57 45 | 29 3b 0d 70 61 73 63 61 |ndle hWE|);.pasca|
|00005fa0| 6c 20 53 49 6e 74 31 36 | 20 5f 57 45 53 63 72 69 |l SInt16| _WEScri|
|00005fb0| 70 74 54 6f 46 6f 6e 74 | 28 53 63 72 69 70 74 43 |ptToFont|(ScriptC|
|00005fc0| 6f 64 65 20 73 63 72 69 | 70 74 29 3b 0d 0d 2f 2f |ode scri|pt);..//|
|00005fd0| 09 57 45 44 65 62 75 67 | 2e 63 20 28 70 72 69 76 |.WEDebug|.c (priv|
|00005fe0| 61 74 65 29 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |ate).pas|cal void|
|00005ff0| 20 5f 57 45 53 61 6e 69 | 74 79 43 68 65 63 6b 28 | _WESani|tyCheck(|
|00006000| 57 45 48 61 6e 64 6c 65 | 20 68 57 45 29 3b 0d 0d |WEHandle| hWE);..|
|00006010| 2f 2f 09 57 45 44 72 61 | 77 69 6e 67 2e 63 20 28 |//.WEDra|wing.c (|
|00006020| 70 72 69 76 61 74 65 29 | 0d 70 61 73 63 61 6c 20 |private)|.pascal |
|00006030| 76 6f 69 64 20 5f 57 45 | 43 6f 6e 74 69 6e 75 6f |void _WE|Continuo|
|00006040| 75 73 53 74 79 6c 65 52 | 61 6e 67 65 28 53 49 6e |usStyleR|ange(SIn|
|00006050| 74 33 32 20 72 61 6e 67 | 65 53 74 61 72 74 2c 20 |t32 rang|eStart, |
|00006060| 53 49 6e 74 33 32 20 72 | 61 6e 67 65 45 6e 64 2c |SInt32 r|angeEnd,|
|00006070| 0d 09 09 57 45 53 74 79 | 6c 65 4d 6f 64 65 20 2a |...WESty|leMode *|
|00006080| 6d 6f 64 65 2c 20 57 45 | 54 65 78 74 53 74 79 6c |mode, WE|TextStyl|
|00006090| 65 20 2a 74 73 2c 20 57 | 45 48 61 6e 64 6c 65 20 |e *ts, W|EHandle |
|000060a0| 68 57 45 29 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |hWE);.pa|scal voi|
|000060b0| 64 20 5f 57 45 53 79 6e | 63 68 4e 75 6c 6c 53 74 |d _WESyn|chNullSt|
|000060c0| 79 6c 65 28 57 45 48 61 | 6e 64 6c 65 20 68 57 45 |yle(WEHa|ndle hWE|
|000060d0| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 5f |);.pasca|l void _|
|000060e0| 57 45 53 65 67 6d 65 6e | 74 4c 6f 6f 70 28 53 49 |WESegmen|tLoop(SI|
|000060f0| 6e 74 33 32 20 66 69 72 | 73 74 4c 69 6e 65 2c 20 |nt32 fir|stLine, |
|00006100| 53 49 6e 74 33 32 20 6c | 61 73 74 4c 69 6e 65 2c |SInt32 l|astLine,|
|00006110| 20 57 45 53 65 67 6d 65 | 6e 74 4c 6f 6f 70 50 72 | WESegme|ntLoopPr|
|00006120| 6f 63 50 74 72 20 63 61 | 6c 6c 62 61 63 6b 2c 20 |ocPtr ca|llback, |
|00006130| 76 6f 69 64 20 2a 63 61 | 6c 6c 62 61 63 6b 44 61 |void *ca|llbackDa|
|00006140| 74 61 2c 20 57 45 48 61 | 6e 64 6c 65 20 68 57 45 |ta, WEHa|ndle hWE|
|00006150| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 5f |);.pasca|l void _|
|00006160| 57 45 44 72 61 77 54 53 | 4d 48 69 6c 69 74 65 28 |WEDrawTS|MHilite(|
|00006170| 52 65 63 74 20 2a 73 65 | 67 6d 65 6e 74 52 65 63 |Rect *se|gmentRec|
|00006180| 74 2c 20 55 49 6e 74 38 | 20 74 73 46 6c 61 67 73 |t, UInt8| tsFlags|
|00006190| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 5f |);.pasca|l void _|
|000061a0| 57 45 44 72 61 77 4c 69 | 6e 65 73 20 28 53 49 6e |WEDrawLi|nes (SIn|
|000061b0| 74 33 32 20 66 69 72 73 | 74 4c 69 6e 65 2c 20 53 |t32 firs|tLine, S|
|000061c0| 49 6e 74 33 32 20 6c 61 | 73 74 4c 69 6e 65 2c 20 |Int32 la|stLine, |
|000061d0| 42 6f 6f 6c 65 61 6e 20 | 64 6f 45 72 61 73 65 2c |Boolean |doErase,|
|000061e0| 20 57 45 48 61 6e 64 6c | 65 20 68 57 45 29 3b 0d | WEHandl|e hWE);.|
|000061f0| 70 61 73 63 61 6c 20 53 | 49 6e 74 31 36 20 5f 57 |pascal S|Int16 _W|
|00006200| 45 43 61 6c 63 50 65 6e | 49 6e 64 65 6e 74 28 63 |ECalcPen|Indent(c|
|00006210| 6f 6e 73 74 20 57 45 4c | 69 6e 65 52 65 63 20 2a |onst WEL|ineRec *|
|00006220| 20 70 4c 69 6e 65 2c 20 | 57 45 41 6c 69 67 6e 6d | pLine, |WEAlignm|
|00006230| 65 6e 74 20 61 6c 69 67 | 6e 6d 65 6e 74 2c 20 57 |ent alig|nment, W|
|00006240| 45 44 69 72 65 63 74 69 | 6f 6e 20 64 69 72 65 63 |EDirecti|on direc|
|00006250| 74 69 6f 6e 29 3b 0d 70 | 61 73 63 61 6c 20 76 6f |tion);.p|ascal vo|
|00006260| 69 64 20 5f 57 45 53 61 | 76 65 51 44 45 6e 76 69 |id _WESa|veQDEnvi|
|00006270| 72 6f 6e 6d 65 6e 74 28 | 47 72 61 66 50 74 72 20 |ronment(|GrafPtr |
|00006280| 70 6f 72 74 2c 20 42 6f | 6f 6c 65 61 6e 20 73 61 |port, Bo|olean sa|
|00006290| 76 65 43 6f 6c 6f 72 2c | 20 51 44 45 6e 76 69 72 |veColor,| QDEnvir|
|000062a0| 6f 6e 6d 65 6e 74 20 2a | 65 6e 76 69 72 6f 6e 6d |onment *|environm|
|000062b0| 65 6e 74 29 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |ent);.pa|scal voi|
|000062c0| 64 20 5f 57 45 52 65 73 | 74 6f 72 65 51 44 45 6e |d _WERes|toreQDEn|
|000062d0| 76 69 72 6f 6e 6d 65 6e | 74 28 63 6f 6e 73 74 20 |vironmen|t(const |
|000062e0| 51 44 45 6e 76 69 72 6f | 6e 6d 65 6e 74 20 2a 65 |QDEnviro|nment *e|
|000062f0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 29 3b 0d 70 61 73 |nvironme|nt);.pas|
|00006300| 63 61 6c 20 76 6f 69 64 | 20 5f 57 45 46 69 6c 6c |cal void| _WEFill|
|00006310| 46 6f 6e 74 49 6e 66 6f | 20 28 47 72 61 66 50 74 |FontInfo| (GrafPt|
|00006320| 72 20 70 6f 72 74 2c 20 | 57 45 52 75 6e 41 74 74 |r port, |WERunAtt|
|00006330| 72 69 62 75 74 65 73 20 | 2a 74 61 72 67 65 74 53 |ributes |*targetS|
|00006340| 74 79 6c 65 29 3b 0d 70 | 61 73 63 61 6c 20 76 6f |tyle);.p|ascal vo|
|00006350| 69 64 20 5f 57 45 43 6f | 70 79 53 74 79 6c 65 20 |id _WECo|pyStyle |
|00006360| 28 63 6f 6e 73 74 20 57 | 45 54 65 78 74 53 74 79 |(const W|ETextSty|
|00006370| 6c 65 20 2a 73 6f 75 72 | 63 65 53 74 79 6c 65 2c |le *sour|ceStyle,|
|00006380| 20 57 45 54 65 78 74 53 | 74 79 6c 65 20 2a 74 61 | WETextS|tyle *ta|
|00006390| 72 67 65 74 53 74 79 6c | 65 2c 0d 09 09 53 74 79 |rgetStyl|e,...Sty|
|000063a0| 6c 65 20 6f 66 66 53 74 | 79 6c 65 73 2c 20 57 45 |le offSt|yles, WE|
|000063b0| 53 74 79 6c 65 4d 6f 64 | 65 20 6d 6f 64 65 29 3b |StyleMod|e mode);|
|000063c0| 0d 70 61 73 63 61 6c 20 | 42 6f 6f 6c 65 61 6e 20 |.pascal |Boolean |
|000063d0| 5f 57 45 4f 66 66 73 65 | 74 49 6e 52 61 6e 67 65 |_WEOffse|tInRange|
|000063e0| 28 53 49 6e 74 33 32 20 | 6f 66 66 73 65 74 2c 20 |(SInt32 |offset, |
|000063f0| 57 45 45 64 67 65 20 65 | 64 67 65 2c 20 53 49 6e |WEEdge e|dge, SIn|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.